Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- Scanner input = new Scanner (System.in);
- String answer= input.nextLine();
- if (answer.equalsIgnoreCase("yes"))
- {
- Boolean.valueOf(answer);
- System.out.println("YES WTF");
- }
- else if (answer.equalsIgnoreCase("no")) {
- System.out.println("NO WTF");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement