Locale.getUnicodeLocaleKeys() has the following syntax.
public Set <String> getUnicodeLocaleKeys()
In the following code shows how to use Locale.getUnicodeLocaleKeys() method.
//from w w w . j a v a 2 s .co m import java.util.Locale; public class Main { public static void main(String[] args) { Locale locale = Locale.CANADA_FRENCH; System.out.println("Locale1:" + locale); System.out.println(locale.getUnicodeLocaleKeys()); } }
The code above generates the following result.