Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String string = scanner.nextLine();
- String[] words = string.split(" ");
- int lenght = words.length;
- System.out.println(lenght);
- if (words[0])
- {
- //need help
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement