Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //It will ask the user to either accept or reject the offer
- public boolean status() {
- int temp;
- while (true) {
- System.out.print("\nAccept or Reject! [1]Accept [2]Reject: ");
- temp = userInput.nextInt();
- if (temp == 1 || temp == 2) {
- break;
- }
- System.out.println("Error! You must answer either 1 or 2.");
- }
- System.out.println();
- return temp != 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement