MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

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]);
    }
}