|
|
@@ -490,14 +490,4 @@ public class ReAppraisalManage { |
|
|
|
throw new BizException(e.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
|
Integer lastCount = 2; |
|
|
|
List<Integer> accidents = Lists.newArrayList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); |
|
|
|
List<Integer> accidentList = accidents.stream() |
|
|
|
.skip(lastCount) |
|
|
|
.limit(accidents.size() - lastCount) |
|
|
|
.collect(Collectors.toList()); |
|
|
|
System.out.println(accidentList); |
|
|
|
} |
|
|
|
} |