Search:

Type: Posts; User: javapenguin

Search: Search took 0.23 seconds.

  1. Replies
    23
    Views
    2,856

    Re: looping and arrays

    Please, let's not start that argument up again. #-o:-t

    JavaHater....hey, why are you even here if you hate java? ;)):-/:-?8-|

    But KW is right about the spoonfeeding thing. I just was too...
  2. Replies
    23
    Views
    2,856

    Re: looping and arrays

    Well, I don't usually call other's advice "nonsense" and stuff like that, even if it's blatantly wrong.
  3. Replies
    23
    Views
    2,856

    Re: looping and arrays

    Ok, this is as simple as I can get it and I doubt even the All Knowing Java Guru Kevin Workman can make this simpler. :rolleyes::rolleyes:

    Checking to see if a Member joined in a month would be...
  4. Replies
    23
    Views
    2,856

    Re: looping and arrays

    Yeah you could, be it'd be best if for your Member class, you had a dateJoined data field in the constructor then.

    However, you'd still have to have 12 variables, one for each month.

    You would...
  5. Replies
    23
    Views
    2,856

    Re: looping and arrays

    I wasn't trying to show the whole thing. Anyway, the .equals thing might not be that great of an idea either.

    What members.get(i) is returning is a Member object.

    If Member doesn't have an...
  6. Replies
    23
    Views
    2,856

    Re: looping and arrays

    Yeah you could, be it'd be best if for your Member class, you had a dateJoined data field in the constructor then.

    However, you'd still have to have 12 variables, one for each month.

    You would...
  7. Replies
    23
    Views
    2,856

    Re: looping and arrays

    Well...if you created twelve ArrayLists, one for each month, you could simply go to that ArrayList and

    membersJoinedThisMonth = thatArrayList.size();
Results 1 to 7 of 7