Advertisement
Guest User

Untitled

a guest
Dec 15th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. public void buttonInside() {
  2. Scanner keyboard = new Scanner(System.in);
  3. System.out.println("Where would you like to go? (0-5) : ");
  4. int choice1 = keyboard.nextInt();
  5. while(choice1>5 || choice1<0){
  6. System.out.println("error prosze wybrac inne pietro z zakresu 0-5");
  7. choice1 = keyboard.nextInt();
  8. }
  9. move(choice1);
  10.  
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement