Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. String answer= input.nextLine();
  2. if (answer.equalsIgnoreCase("yes"))
  3. {
  4. Boolean.valueOf(answer);
  5. System.out.println("YES WTF");
  6. }
  7. else if (answer.equalsIgnoreCase("no")) {
  8. System.out.println("NO WTF");
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement