madhawaseeeee

scanne#ex

Jul 6th, 2015
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. Scanner in = new Scanner(System.in);
  2. String x = in.next();
  3.  
  4. if (x.equalsIgnoreCase("c")) {
  5.  
  6. System.out.println("CORRECT ANSWER");
  7. } else {
  8. System.out.println("WRONG ANSWER");
  9. }
Advertisement
Add Comment
Please, Sign In to add comment