public Member findMember(String memberName) {
    if (memberName == null) return null;
    
    if (memberHash == null) { // delay making the hash table until needed
      int initial_capacity = (int) (members.size() / .75) + 1;
      memberHash = new HashMap<>(initial_capacity);
      for (Member m : members)
        memberHash.put(m.getName(), m);
    }
    return memberHash.get(memberName);
  }
public Member findMember ( String memberName ) { if ( memberName == null ) return null ; if ( memberHash == null ) { int initial_capacity = ( int ) ( members . size ( ) / .75 ) + 1 ; memberHash = new HashMap < > ( initial_capacity ) ; for ( Member m : members ) memberHash . put ( m . getName ( ) , m ) ; } return memberHash . get ( memberName ) ; }
Find the member by its name.

@param memberName find by this name
@return Member matching the name, or null if not found