Whenever I run getGender(), it displays as null. It isMalebothers me.
public Student(String sid, String name, boolean isMale)
{
this.sid = sid;
this.name = name;
this.isMale = isMale;
courses = "30202";
}
I made it so that it can return a value, but it returns it as "true" or "false" and does not return it as "Male" or "Female", but this is a code in which it returns it as null, I'm at a dead end.
user4191631
source
share