I am not able to understand why length of the string is not working. Please Help. Following is my code
import java.io.*;

public class Solution {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String a = br.readLine();
        String b = br.readLine();
        int x = a.length();
        int y = b.lenght();

        if (a.equals(b)) {
            System.out.println("The names are identical");
        }
        else if (x==y) {
            System.out.println("The names are the same lenght");
        }
    }
}