I need write a method that searches an object array of Club Members for a specific member and returns true if the member is found. This is what I have now.
public boolean isMember (String name){
boolean found = false;
int arrayIndex = 0;
while(arrayIndex < members.length && !found){
if(members[arrayIndex] == name){
found = true;
}
arrayIndex++;
}
return found;
}