System.out.println("(Default) Today is " + s);
System.out.println("(SHORT) Today is " + s1);
System.out.println("(MEDIUM) Today is " + s2);
System.out.println("(LONG) Today is " + s3); System.out.println("(FULL)
Today is " + s4); } }
That program output the following:
(Default) Today is Nov 8, 2000 (SHORT) Today is 11/8/00 (MEDIUM)
Today is Nov 8, 2000 (LONG) Today is November 8, 2000 (FULL) Today is
Wednesday, November 8, 2000[@more@]