Locale
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ajai_prabha
Posted On:   Tuesday, August 7, 2001 09:07 PM

How can i get Enumeration of all countries using Java.util.Locale
and ResourceBundle?

Re: Locale

Posted By:   Naveed_Azhar  
Posted On:   Wednesday, August 8, 2001 08:24 AM

Hi there

Here is the code


Locale[] lArray = Locale.getAvailableLocales();
for ( int i = 0 ; i < lArray.length ; i ++ ) {
System.out.println(lArray[i].getCountry() + " " + lArray[i].getDisplayCountry());
}

Naveed Azhar

naveed@hotmail.com
About | Sitemap | Contact