Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. public static void main(String[] args) {
  2. Scanner input = new Scanner (System.in);
  3.  
  4. String answer= input.nextLine();
  5. if (answer.equalsIgnoreCase("yes"))
  6. {
  7. Boolean.valueOf(answer);
  8. System.out.println("YES WTF");
  9. }
  10. else if (answer.equalsIgnoreCase("no")) {
  11. System.out.println("NO WTF");
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement