Advertisement
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 console = new Scanner(System.in);
- String one = console.nextLine().toLowerCase();
- String two = console.nextLine().toLowerCase();
- if (one.equals(two)) {
- System.out.println("yes");
- } else {
- System.out.println("no");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement