Hi,
Sorry for my ignorance but the problem I have is probably so simple that I cannot seem to find an answer for it.
I am just learning about the Java.Util Package but in following my course module I am getting an error.
here is the simple code :
import java.util.*;
public class Main {
public static void main(String[] args) {
Calendar c = new Calendar.[U]getInstance();[/U]
System.out.println(c.getTime());
System.out.println(c.getClass());
}
}
now here is the error:
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code
at javautilpack2.Main.main(Main.java:19)
Java Result: 1
BUILD SUCCESSFUL (total time: 1 second)
the get.Instance is underlined (red) (netbeans)
My reckoning is that for some reason the Calendar class cannot be found? or the method?
Sorry people normally I would be able to find the problem if it was just the code but unfortunately I have not come accross this kind of error in my course yet.