skipter

Equal Words

Apr 9th, 2017
209
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 Main {
  3.     public static void main(String[] args) {
  4.         Scanner input = new Scanner(System.in);
  5.         String firstWord = input.nextLine();
  6.         String secondWord = input.nextLine();
  7.         if (firstWord.equalsIgnoreCase(secondWord)) {
  8.             System.out.println("Yes");
  9.         } else {
  10.             System.out.println("No");
  11.         }
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment