SHARE
TWEET

Untitled

a guest Oct 16th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  //It will ask the user to either accept or reject the offer
  2.      public boolean status() {
  3.         int temp;
  4.         while (true) {
  5.             System.out.print("\nAccept or Reject! [1]Accept [2]Reject: ");
  6.             temp = userInput.nextInt();
  7.             if (temp == 1 || temp == 2) {
  8.                 break;
  9.             }
  10.             System.out.println("Error! You must answer either 1 or 2.");
  11.         }
  12.         System.out.println();
  13.         return temp != 1;
  14.     }
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
 
Top