Java tutorial
import java.util.Locale; public class MainClass { public static void main(String args[]) throws Exception { String[] languages = Locale.getISOLanguages(); System.out.println("\nLanguages:\n"); for (int i = 0; i < languages.length; i++) System.out.println(languages[i]); } }