Search:

Type: Posts; User: Stn

Search: Search took 0.11 seconds.

  1. Replies
    6
    Views
    2,664

    Re: Arraylist removing element

    Here is how i add a member, When i add a member it adds one to the nextMemberID int. So if i add member 4 to the list of 3 members then i'll have 4 members 1,2,3,4. If i remove member 2 then i'll...
  2. Replies
    6
    Views
    2,664

    Re: Arraylist removing element

    Ok i can see my question isn't clear so i'll try to explaine. if i add 10 members to the array then the array will hold these members in cells 0-9. My "nextMemberID" will hold these members as 1-10. ...
  3. Replies
    6
    Views
    2,664

    Re: Arraylist removing element

    sorry i didn't mean the element because they do move down as you remove objects, i meant to get my "nextMemberID" to shuffle down by 1 so as to fill the gap.
  4. Replies
    6
    Views
    2,664

    Arraylist removing element

    Hi

    i have an arraylist thats keeping a track of members, i need to remove a member and have the list push all other elements down by 1. Please help



    ArrayList<Membership> member;
    ...
Results 1 to 4 of 4