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

    What's wrong with this code? Please help!

    tomyang

      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());
      }
      }

      Tom