Advertisement
Guest User

Untitled

a guest
Jun 26th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. String string = scanner.nextLine();
  2.  
  3. String[] words = string.split(" ");
  4. int lenght = words.length;
  5. System.out.println(lenght);
  6. if (words[0])
  7. {
  8. //need help
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement