|
|
|
@ -1115,28 +1115,32 @@ public class TestService {
|
|
|
|
|
} |
|
|
|
|
public static void main(String[] args) throws IOException, InterruptedException { |
|
|
|
|
|
|
|
|
|
List<String> strings = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
strings.add("11"); |
|
|
|
|
strings.add("11"); |
|
|
|
|
strings.add("14"); |
|
|
|
|
strings.add("11"); |
|
|
|
|
strings.add("11"); |
|
|
|
|
strings.add("13"); |
|
|
|
|
strings.add("11"); |
|
|
|
|
strings.add("11"); |
|
|
|
|
int num = (int) Math.ceil((double) 11 / 4); |
|
|
|
|
System.out.println(num); |
|
|
|
|
|
|
|
|
|
for (int a=0 ;a< 1200;a++){ |
|
|
|
|
strings.add(a+100+""); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
List<List<String>> split = CollUtil.split(strings, 500); |
|
|
|
|
|
|
|
|
|
split.forEach(s -> { |
|
|
|
|
System.out.println(s); |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
// List<String> strings = new ArrayList<>();
|
|
|
|
|
//
|
|
|
|
|
// strings.add("11");
|
|
|
|
|
// strings.add("11");
|
|
|
|
|
// strings.add("14");
|
|
|
|
|
// strings.add("11");
|
|
|
|
|
// strings.add("11");
|
|
|
|
|
// strings.add("13");
|
|
|
|
|
// strings.add("11");
|
|
|
|
|
// strings.add("11");
|
|
|
|
|
//
|
|
|
|
|
// for (int a=0 ;a< 1200;a++){
|
|
|
|
|
// strings.add(a+100+"");
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// List<List<String>> split = CollUtil.split(strings, 500);
|
|
|
|
|
//
|
|
|
|
|
// split.forEach(s -> {
|
|
|
|
|
// System.out.println(s);
|
|
|
|
|
//
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
// Date data1 = DateUtil.parse("2024-07-23 17:07:23.123","yyyy-MM-dd hh:mm:ss.SSS");
|
|
|
|
|
// Date data2 = DateUtil.parse("2024-07-24 17:07:23.123","yyyy-MM-dd hh:mm:ss.SSS");
|
|
|
|
|