ralitsa_d

EqualWords

Jan 18th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Password {
  4. public static void main(String[] args) {
  5. Scanner scan = new Scanner(System.in);
  6.  
  7. String firstWord = scan.nextLine().toUpperCase();
  8. String secondWord = scan.nextLine().toUpperCase();
  9.  
  10. if (firstWord.equals(secondWord)){
  11. System.out.println("yes");
  12. }
  13. else{
  14. System.out.println("no");
  15. }
  16.  
  17. }
  18. }
Add Comment
Please, Sign In to add comment