Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //...
- Scanner s = new Scanner(System.in);
- private void demoInput() {
- String userin;
- do {
- System.out.println("Insert some text: ");
- userin = s.nextLine();
- System.out.println("You said: " + userin);
- } while(!userin.equals("quit"));
- }
- //...
Advertisement
Add Comment
Please, Sign In to add comment