5 Replies Latest reply on Apr 10, 2003 12:46 PM by Tom Yang

    What's wrong with this code? Please help!

    Tom Yang Newbie

      Hi all:
      I met a weird problem. I have a simple program (see below). But it doesn't compile. I can't see anything wrong with it. Could someone please help? I am using JDK 1.3. It'll probably work in JDK 1.4. But I need to use JDK 1.3. Thanks in advance.

      import java.util.*;
      public class t {
      public static void main (String[] args) {
      GregorianCalendar g = new GregorianCalendar();
      System.out.println("The value is " + g.getTimeInMillis());