My program works fine if I set the variables manually to identical names. The cond (a==b) will even come up as true, and the statement will print.
Nevertheless, it is still failing.
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 cr = new BufferedReader(new InputStreamReader(System.in));
String a = cr.readLine();
String b = cr.readLine();
if (a == b){
System.out.println("The names are identical");}
else if (a.length() == b.length()){
System.out.println("The names are the same length");}
}
}