표준입력 (stdin)
실행옵션 (runtime option)
코드:
실행 »
표준입력/실행옵션
import java.util.*; public class prog { public static void main(String[] args) { Calendar time = Calendar.getInstance(); System.out.println(time.getTime()); time.set(Calendar.YEAR, 2020); System.out.println(time.getTime()); time.set(1982, 1, 19); // 1은 2월을 나타냄. System.out.println(time.getTime()); time.set(1982, 1, 19, 12, 34, 56); System.out.println(time.getTime()); } }