Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void buttonInside() {
- Scanner keyboard = new Scanner(System.in);
- System.out.println("Where would you like to go? (0-5) : ");
- int choice1 = keyboard.nextInt();
- while(choice1>5 || choice1<0){
- System.out.println("error prosze wybrac inne pietro z zakresu 0-5");
- choice1 = keyboard.nextInt();
- }
- move(choice1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement