I can't for the life of me figure out why this isn't meeting the 3rd criteria. When I run the code it seems to behave as intended.
package com.codegym.task.task04.task0421;
/*
Jen or Jen?
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String a = reader.readLine();
String b = reader.readLine();
//int c = a.length();
//int d = b.length();
if (a.equals(b)){
System.out.println("The names are identical.");
}else if (a.length() == b.length()){
System.out.println("The names are the same length");
}
}
}