Internationalization Java Tutorial

Language Country Locale Identifier
Chinese (Simplified)Singaporezh_SG
EnglishMaltaen_MT
EnglishPhilippinesen_PH
EnglishSingaporeen_SG
GreekCyprusel_CY
IndonesianIndonesiain_ID
Japanese (Japanese calendar)Japanja_JP_JP
MalayMalaysiams_MY
MalteseMaltamt_MT
SpanishUSes_US

import java.text.DateFormat;
import java.util.Calendar;
import java.util.Locale;
import javax.swing.JOptionPane;
public class JapaneseCalendar {
  public static void main(String[] args) {
    Locale japanese = new Locale("ja", "JP", "JP");
    Calendar cal = Calendar.getInstance(japanese);
    DateFormat df = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL, japanese);
    String str = df.format(cal.getTime());
    JOptionPane.showMessageDialog(null, str);
  }
}