Java zainicjuj dynamiczną tablicę boolean

// Load List of Boooleans, from console, using streams:
List<Boolean> booleans = Arrays
                .stream(scanner.nextLine().split("\\s+"))
                .map(Boolean::parseBoolean)
                .collect(Collectors.toList());


// Load ArrayList of Boooleans, from console, using streams:
ArrayList booleans = new ArrayList<>();
while (scanner.hasNextBoolean()) {
  booleans.add(scanner.nextBoolean());
}