Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Password {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- String firstWord = scan.nextLine().toUpperCase();
- String secondWord = scan.nextLine().toUpperCase();
- if (firstWord.equals(secondWord)){
- System.out.println("yes");
- }
- else{
- System.out.println("no");
- }
- }
- }
Add Comment
Please, Sign In to add comment