System.out.println("(MEDIUM)Todayis"+s2);
System.out.println("(LONG)Todayis"+s3);
System.out.println("(FULL)Todayis"+s4);
}
}
程序输出如下:
(Default)TodayisNov8,2000
(SHORT)Todayis11/8/00
(MEDIUM)TodayisNov8,2000
(LONG)TodayisNovember8,2000
(FULL)TodayisWednesday,November8,2000
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/