Feb / 06

Confused about Arrays, please help!?

                        I have a Member class:

public class Member
{
    private String surname;
    private String firstName;
    private String membershipCode;

    public Member(String firstName, String surname, String membershipCode)
    {
        this.firstName = firstName;
        this.surname = surname;
        this.membershipCode = membershipCode;   
    }

The question is : Write a basic Club class which stores the details of its members in an Array of Member.

My Club class so far :

public class Club {
    
    public Club()
    {
        Member [] memberDetails;
        memberDetails = new Member[9];
    }
    
    public void addMembers()
    {
        
    }
}

Please help, im so confused on what to add?
Answer