- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChapter47.java
More file actions
Latest commit
20 lines (15 loc) · 523 Bytes
/
Copy pathChapter47.java
File metadata and controls
20 lines (15 loc) · 523 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
packagechapter47;
importjava.util.Calendar;
importjava.util.Date;
publicclassDateEx {
publicstaticvoidmain(String[] args) {
//Date 클래스로 날짜 객체 생성
Datenow = newDate();
System.out.println(now);
System.out.println("--------------------------");
//calendar 클래스로 날짜 정보 생성
Calendarctime = Calendar.getInstance();
System.out.println(ctime);
System.out.println("--------------------------");
}
}