Skip to content

Instantly share code, notes, and snippets.

@ShanikaNishadhi
Created March 29, 2019 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ShanikaNishadhi/a4276683adcba32586811ae0a2105011 to your computer and use it in GitHub Desktop.
Save ShanikaNishadhi/a4276683adcba32586811ae0a2105011 to your computer and use it in GitHub Desktop.
import java.util.Locale;
class Main {
public static void main(String[] args) {
Locale locale = Locale.GERMANY;
System.out.println("Locale: " + locale);
System.out.println("ISO 2 letter: " + locale.getCountry());
System.out.println("ISO 3 letter: " + locale.getISO3Country());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment