Muat daftar bilangan bulat dari konsol
// Load list of Integers, from console
List<Integer> list = Arrays.stream(scanner.nextLine().split("\\s+"))
.map(Integer::parseInt).collect(Collectors.toList());
// Load list of Integers, from console
List<Integer> list = Arrays.stream(scanner.nextLine().split("\\s+"))
.map(Integer::parseInt).collect(Collectors.toList());