回答編集履歴
1
月最終日を取っていたのを忘れていた
answer
CHANGED
@@ -7,4 +7,16 @@
|
|
7
7
|
System.out.println();
|
8
8
|
}
|
9
9
|
}
|
10
|
+
```
|
11
|
+
|
12
|
+
---
|
13
|
+
追記
|
14
|
+
月の最終日が取れてるならこれでいいのか
|
15
|
+
```java
|
16
|
+
for(int day = 1; day <= lastDay; cal.add(Calendar.DATE, 1), day++){
|
17
|
+
(日付表示処理)
|
18
|
+
if(cal.get(Calendar.DAY_OF_WEEK) == Calendar.SATURDAY){
|
19
|
+
System.out.println();
|
20
|
+
}
|
21
|
+
}
|
10
22
|
```
|