Not sure what the issue is now! Not able to show matching names are equal
package com.codegym.task.task04.task0421;
/*
Jen or Jen?
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String firstName = reader.readLine();
String secondName = reader.readLine();
if(firstName.equals(secondName))
System.out.println("The names are identical");
//if(firstName != secondName){
int firstNameLength = firstName.length();
// System.out.println(firstNameLength);
int secondNameLength = secondName.length();
if(firstNameLength == secondNameLength){
System.out.println("The names are the same length");
}
//write your code here
}
}