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