changes.
This commit is contained in:
parent
31caff2146
commit
2d0e41846c
@ -298,7 +298,17 @@ public class DefenseService {
|
|||||||
))
|
))
|
||||||
.toList();
|
.toList();
|
||||||
|
|
||||||
final int maxInDay = 16;
|
int maxInDay = 16;
|
||||||
|
|
||||||
|
int size = students.size();
|
||||||
|
for (int i = 1; i < 10; i++) {
|
||||||
|
int inDay = size / i;
|
||||||
|
if (inDay <= maxInDay) {
|
||||||
|
maxInDay = inDay;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int currentDay = 1;
|
int currentDay = 1;
|
||||||
int currentOrder = 1;
|
int currentOrder = 1;
|
||||||
for (StudentData student : students) {
|
for (StudentData student : students) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user