Java API Tutorial - Java Locale .getUnicodeLocaleAttributes ()








Syntax

Locale.getUnicodeLocaleAttributes() has the following syntax.

public Set <String> getUnicodeLocaleAttributes()

Example

In the following code shows how to use Locale.getUnicodeLocaleAttributes() method.

/*from  w w  w.ja  va2 s. c  o 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.getUnicodeLocaleAttributes());

   }
}

The code above generates the following result.