This code segment returns all the locales supported by the Java Runtime:
// ListSupportedLocales.java
import java.util.*;
// other code to go here.
Locale[] localeList = Locale.getAvailableLocales( );
for (int i=0; i<localeList.length; i++)
System.out.println(localeList[i]);
}