Załaduj tablicę ciągów od konsoli

String[] words = scanner.nextLine().split(" ");