Replace your setName function with this :
public void setName(String name) {
girlsName = name;
}
You forgot add param type.
solved Java Simple Program Does Not Run
Replace your setName function with this :
public void setName(String name) {
girlsName = name;
}
You forgot add param type.
solved Java Simple Program Does Not Run