리 는 덤를
덤 대 대 봅
덤 대 대 봅
보 ¶
Date Calendar 를 는 방
Date ¶
~cpp Date today = new Date(); // today는 Date System.out.println(today); // 바 today String 동변
~cpp
SimpleDateFormat dateForm = new SimpleDateFormat("yyyy MM dd hh mm ss"); //
System.out.println(dateForm.format(today)); // today란 Date를 dateForm 맞
는 볼
| 볼 | 미 |
| y | |
| M | |
| d | |
| h | (1~12) |
| H | (0~23) |
| m | |
| s | |
| S | 1/1000 |
| E | |
| a | / |
Calendar ¶
~cpp Calendar now = Calendar.getInstance(); // 를 부 를 int hour = now.get(Calendar.HOUR); // 보 int min = now.get(Calendar.MINUTE); // 보
Calendar
| 미 | |
| YEAR | |
| MONTH | |
| DATE | |
| HOUR | (1~12) |
| HOUROFDAY | (0~23) |
| MINUTE | |
| SECOND | |
| MILLISECOND | 1/1000 |
| DAYOFWEEK | |
| AMPM | / |
(Random) ¶
~cpp Random r = new Random(); int num = r.nextInt(); // Int범(-2147483648 ~ 214783647) int num2 = r.nextInt() % 10; // -9 ~ 9 int num3 = Math.abs(r.nextInt() % 10); // 0 ~ 9 . Math.abs()는 대
¶
보
~cpp 2003 9 27 :-97% :43% :-99% :-96%
는
,,, -100 ~ 100 덤 (마 바)
,,, -100 ~ 100 덤 (마 바)










