Tuesday, February 24, 2015

Java: Locale p2

In this part we will create a simple utility class that will choose the right Locale

Note:

  • using static method
  • we are passing in character country code
  • we are returning Locale
  • this could grow to 180+ cases