Friday, March 16, 2007

Country list

I have created a java file which containts the complete list of 237 countries across the world.

here is the link for the java file.

I think it will be a bit of helpfull for you....

suggestion are welcome.....

3 comments:

Schalk Neethling said...

This could really be useful. One suggestion though, I would post your code snippet on snippets.dzone.com.

This way it can help out a bunch of developers.

MF Jones said...

Time zone, locale information should always be up-to-date (e.g. USSR and East/West Germany ;) . It would be better to use a centralized and maintained list of countries instead of the hard-coded list written in English. Here is an example how to get a list of countries and ISO codes supported by the JVM:
http://snippets.dzone.com/posts/show/3787

Guy Bashan said...

I made something more generic to handle this thing. You can have a look you like:
http://www.bashanblog.com/2009/03/getting-countries-list-for-specific.html