Results 1 to 2 of 2
  1. #1
    xxdave is offline Member
    Join Date
    Nov 2011
    Rep Power

    Default Help with Arrays please

    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 to get my member object I create into the Array in a different class?

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

    Default Re: Help with Arrays please

    You already have a thread for this question. Don't clutter up the forum with duplicates.

    Closing this thread.

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. arrays and multidimensional arrays
    By belfast09 in forum New To Java
    Replies: 5
    Last Post: 06-14-2011, 01:28 PM
  2. 2D Arrays
    By NixasMuraki in forum New To Java
    Replies: 5
    Last Post: 03-17-2011, 08:53 AM
  3. store array of arrays in array of arrays
    By joost_m in forum New To Java
    Replies: 4
    Last Post: 04-19-2010, 10:32 AM
  4. Arrays.sort... why sorting all arrays in class?
    By innspiron in forum New To Java
    Replies: 6
    Last Post: 03-23-2010, 01:40 AM
  5. Arrays
    By karabo101 in forum New To Java
    Replies: 12
    Last Post: 10-11-2009, 05:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts