what's wrong with the new Date()?

why can't i use as bleow?thanksSystem.out.println(new Date());
[117 byte] By [jollychanga] at [2007-10-3 3:11:31]
# 1
What error are you getting?
jbisha at 2007-7-14 21:02:23 > top of Java-index,Java Essentials,New To Java...
# 2
Severity and DescriptionPathResourceLocationCreation TimeIdDate cannot be resolved to a typeTestClassDatePrintDate.javaline 51156165071640150
jollychanga at 2007-7-14 21:02:23 > top of Java-index,Java Essentials,New To Java...
# 3
I don't know, why can't you?Is this like a knock knock joke?
ted_trippina at 2007-7-14 21:02:23 > top of Java-index,Java Essentials,New To Java...
# 4

I don't Konw Too

this is the whole codes

public class PrintDate {

public static void main(String [] args)

{

System.out.println(new Date());

}

}

jollychanga at 2007-7-14 21:02:23 > top of Java-index,Java Essentials,New To Java...
# 5

Have you imported the Date class?import java.util.Date;

public class Test

{

public static void main(String[] args)

{

System.out.println(new Date());

}

}

Ted.

ted_trippina at 2007-7-14 21:02:23 > top of Java-index,Java Essentials,New To Java...
# 6
Oh~I Knew,Just Forgot the ImportOh,My Godthanks Bothimport java.util.*;
jollychanga at 2007-7-14 21:02:23 > top of Java-index,Java Essentials,New To Java...