Package tigers;
Import java.text. *; import java.util. *;
Public class tiger25 {
Public static void main (string [] args) {system.out.println (getDatetime (new date (), local.china); system.out.println (getDatetime (new date (), locale.chinese); System .out.println (new Date (), locale.simplified_chinese); system.out.println (getDatetime (new date (), locale.traditional_chinese); system.out.println (getDatetime (new Date (), Locale.TAIWAN)); Calendar cal = Calendar.getInstance (Locale.CHINA); cal.setTime (new Date ()); int day = cal.get (Calendar.DAY_OF_WEEK); DateFormatSymbols symbols = new DateFormatSymbols (Locale.CHINA) String [] days = symbols.getWeekDays (); system.out.println; system.out.println (days [day]);} private static string getdatetime (Date Date, Locale Locale) {Int [] type = new int [] {dateformat.long, dateformat.medium, dateformat.short}; string str = "< >>>>>" Locale.GetDisplayCountry () "/ n"; for INT i = 0; i result: < >>>> China February 16, 2005 11:02 in 11:00 2005-2-16 23: 02: 0105-2-16 11:02 < >>>> 2005 February 16, 2005 11:02 02 seconds 2005-2-16 23: 02: 0205-2-16 11:02 < >>>> China February 16, 2005 11:02 02 seconds 2005-2-16 23: 02: 0205-2-16 11:02 < >>>>> Taiwan's February 16, 2005 at 11:02 02 seconds 2005/2/16 11: 02: 022005/2/16 11:02 < >>>>> Taiwan's February 16, 2005 at 11:02 02 seconds 2005/2/16 11: 02: 022005/2/16 11:02 in the afternoon [, Sunday, Monday, Tuesday, Wednesday, Wednesday, Wednesday, Wednesday, Wednesday, Wednesday, Wednesday