Advertisement
tchenkov

L03u11_EqualWords

Jan 18th, 2017
411
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.47 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. /*
  4.  * Created by todor on 18.01.2017 г..
  5.  */
  6. public class u11_EqualWords {
  7.     public static void main(String[] args) {
  8.  
  9.         Scanner scan = new Scanner(System.in);
  10.  
  11.         String word1 = scan.nextLine().toLowerCase();
  12.         String word2 = scan.nextLine().toLowerCase();
  13.  
  14.         if (word1.equals(word2)){
  15.             System.out.println("yes");
  16.         }
  17.         else {
  18.             System.out.println("no");
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement