Comment créer un tableau sans connaître la taille Java

String[] array = scan.nextLine().split(" ");
Magnificent Monkey Adi