I need help with regards to the code. I have done it in two different ways and it is either ,i miss the fourth requirement or i miss the last requirement .I do not know if i have to apply the equal() method. Any information with explanation would be appreciated.
package com.codegym.task.task04.task0406;
/*
Name register
*/
public class Cat {
private String fullName;
public void setName(String firstName, String lastName) {
String fullName= firstName + " " + lastName;
//write your code her
System.out.println(fullName);
}
public static void main(String[] args) {
Cat obj = new Cat();
obj.setName("Henry","McQuincy");
}
}