표준입력 (stdin)
실행옵션 (runtime option)
코드:
실행 »
표준입력/실행옵션
import java.util.*; public class prog { public static void main(String[] args) { Calendar time1 = Calendar.getInstance(); Calendar time2 = Calendar.getInstance(); System.out.println(time1.getTime()); time1.add(Calendar.SECOND, 60); System.out.println(time1.getTime()); time2.roll(Calendar.SECOND, 60); System.out.println(time2.getTime()); } }