Locale[] locales = {
new Locale("fr","FR"),
new Locale("de","DE"),
new Locale("en","US")
};
for (int i = 0; i < locales.length; i++) {
displayDate(locales[i]);
System.out.println();
}
String[] patterns = {
"dd.MM.yy",
"yyyy.MM.dd G 'at' hh:mm:ss z",
"EEE, MMM d, ''yy",
"h:mm a",
"H:mm",
"H:mm:ss:SSS",
"K:mm a,z",
"yyyy.MMMMM.dd GGG hh:mm aaa"
};
for (int k = 0; k < patterns.length; k++) {
displayPattern(patterns[k], new Locale("en","US"));
System.out.println();
}
System.out.println();