Please rectify my code.
I am unable to correct the compile time error that occurs at line no. 12.
error is - Cannot instantiate the type Calendar
Calendar JavaDoc wrote:Like other locale-sensitive classes, Calendar provides a class method, getInstance, for getting a generally useful object of this type. Calendar's getInstance method returns a Calendar object whose calendar fields have been initialized with the current date and time:
Anyway, what this question has to do with databases (to which forum you posted) ?
I tried using the way you told . again i am getting an error - Syntax error on token ")", delete this token on line 5