SHARE
TWEET

Untitled

a guest Dec 15th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top