Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scanner scan = new Scanner(System.in);
- String word = "";
- StringBuilder fullText = new StringBuilder();
- int i = 0;
- while(!((word=scan.nextLine()).equals("quit"))) {
- fullText.append(word);
- }
- System.out.println(fullText.toString());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement