cara menginisialisasi array di java tanpa ukuran
List<Type> arrayList = new ArrayList<>();
Mouri Roy
List<Type> arrayList = new ArrayList<>();
String[] array = scan.nextLine().split(" ");