Advertisement
YavorGrancharov

EqualWords

Dec 23rd, 2016
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class EqualWords {
  3.     public static void main(String[] args) {
  4.         Scanner console = new Scanner(System.in);
  5.         String one = console.nextLine().toLowerCase();
  6.         String two = console.nextLine().toLowerCase();
  7.  
  8.         if (one.equals(two)) {
  9.             System.out.println("yes");
  10.         } else {
  11.             System.out.println("no");
  12.         }
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement