public void set (int year, int month, int date) public void set (int year, int month, int date, int hour, int minute, int second)
import java.util.Calendar; public class MainClass { public static void main(String[] args) { Calendar calendar = Calendar.getInstance(); calendar.set(2001, 1, 1); } }