Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scanner in = new Scanner(System.in);
- String x = in.next();
- if (x.equalsIgnoreCase("c")) {
- System.out.println("CORRECT ANSWER");
- } else {
- System.out.println("WRONG ANSWER");
- }
Advertisement
Add Comment
Please, Sign In to add comment