Hello
I am chagrined, but I cant see why this utterly simplistic code is giving an error. The error is "cannot find symbol, symbol class getInstance java.util.Calendar" Yes it really says class. I am asking for the method to create an instance of a Calendar for the default locale. And it does have that as shown right here in the javadoc, damnit. What am I missing here? tia.
package ad_hoc;
import java.text.*;
import java.util.*;
public class myDate {
Calendar cal;
public myDate() {
}
public static void main(String[] args) {
Calendar now = new Calendar.getInstance();
myDate mydate = new myDate();
}
}