2. 39. 1. The java.util.Calendar Class |
|
To create a java.util.Calendar object, you have to use its static getInstance method. |
public static Calendar getInstance ()
public static Calendar getInstance (Locale locale)
|
|
The first overload returns an instance that employs the computer's locale. |
import java.util.Calendar;
public class MainClass{
public static void main(String[] args){
Calendar calendar = Calendar.getInstance ();
}
}
|
|