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