• Post Reply Bookmark Topic Watch Topic
  • New Topic

Locales  RSS feed

 
meeta gaur
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 ?
 
Ivan Jozsef Balazs
Rancher
Posts: 999
5
  • 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!