This week's book giveaway is in the OCP forum.
We're giving away four copies of OCP Java SE 8 Programmer II Exam Study Guide and have Kathy Sierra, Bert Bates, & Elizabeth Robson on-line!
See this thread for details.
Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Locales  RSS feed

 
Ranch Hand
Posts: 305
Notepad Tomcat Server Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


java.util
Class Locale


getAvailableLocales

public static Locale[] getAvailableLocales()

Returns an array of all installed locales. The returned array represents the union of locales supported by the Java runtime environment and by installed LocaleServiceProvider implementations. It must contain at least a Locale instance equal to Locale.US.

Returns:
An array of installed locales.




java.text
Class NumberFormat


getAvailableLocales

public static Locale[] getAvailableLocales()

Returns an array of all locales for which the get*Instance methods of this class can return localized instances. The returned array represents the union of locales supported by the Java runtime and by installed NumberFormatProvider implementations. It must contain at least a Locale instance equal to Locale.US.

Returns:
An array of locales for which localized NumberFormat instances are available.



I didn't understand the actual differences, why two classes have same method ?
 
Rancher
Posts: 1016
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> Returns an array of all installed locales.

< Returns an array of all locales for which the get*Instance methods of this class can return localized instances
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!