SHARE
TWEET

EqualWords

yovkovbpfps Mar 26th, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.Scanner;
  2.  
  3. public class Nums100 {
  4.     public static void main(String[] args) {
  5.         Scanner scanner = new Scanner(System.in);
  6.         String firstWord = scanner.nextLine();
  7.         String secondWord = scanner.nextLine();
  8.        
  9.         firstWord = firstWord.toUpperCase();
  10.         secondWord = secondWord.toUpperCase();
  11.        
  12.         if (firstWord.equals(secondWord)) {
  13.             System.out.println("yes");
  14.         }else {
  15.             System.out.println("no");
  16.  
  17.  
  18.         }
  19.     }
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top