SyntaxFix
Write A Post
Hire A Developer
Questions
Since Java 7 there is factory method Locale.forLanguageTag and instance method Locale.toLanguageTag using IETF language tags.
Locale.forLanguageTag
Locale.toLanguageTag