- warnings

This commit is contained in:
Johannes Theiner 2018-11-02 16:44:36 +01:00
parent a25b40574a
commit 0765e6243c

View File

@ -1,8 +1,8 @@
package xyz.joethei.studium.algodat;
import java.time.Instant;
import java.util.*;
import java.util.stream.Collectors;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
public class DuplicatesList {
@ -19,7 +19,7 @@ public class DuplicatesList {
}
public static void main(String[] args) {
List<Integer> list = new ArrayList<Integer>();
List<Integer> list = new ArrayList<>();
Random random = new Random();
for (int i = 0; i < 10000; i++) {
list.add(random.nextInt(10));