I have the most basic problem. Try to get the system date. My code is this;
import java.util.Date;
Date sysdate = new Date();
System.out.println(sysdate);
It gives me the error: Syntax error on token "import", assert expected
And also I have found this on web;
import java.util.Date;
public class DateDemo {
public static void main(String args[]) {
// Instantiate a Date object
Date date = new Date();
// display time and date using toString()
System.out.println(date.toString());
}
}
It gives the same error.
The solution should be very basic but I couldn't find it.
Thanks for your help.
