- warnings
This commit is contained in:
parent
a25b40574a
commit
0765e6243c
|
@ -1,8 +1,8 @@
|
||||||
package xyz.joethei.studium.algodat;
|
package xyz.joethei.studium.algodat;
|
||||||
|
|
||||||
import java.time.Instant;
|
import java.util.ArrayList;
|
||||||
import java.util.*;
|
import java.util.List;
|
||||||
import java.util.stream.Collectors;
|
import java.util.Random;
|
||||||
|
|
||||||
public class DuplicatesList {
|
public class DuplicatesList {
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ public class DuplicatesList {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
List<Integer> list = new ArrayList<Integer>();
|
List<Integer> list = new ArrayList<>();
|
||||||
Random random = new Random();
|
Random random = new Random();
|
||||||
for (int i = 0; i < 10000; i++) {
|
for (int i = 0; i < 10000; i++) {
|
||||||
list.add(random.nextInt(10));
|
list.add(random.nextInt(10));
|
||||||
|
|
Loading…
Reference in New Issue