Christian,
would I create my JobHistory class like this:
public JobHistory(String name, int[] months) {
this.name = name;
this.months = months;
}
public int getMonthData(int mon) {
return months[mon];
}
public void setMonthData(int mon, int data) {
this.months[mon] = data;
}
On Sep 11, 7:17 am, "Wayne Fay" <[EMAIL PROTECTED]> wrote:
> Since we're picking on you... ;-)
>
> On Wed, Sep 10, 2008 at 9:03 PM, Michael Burgess <[EMAIL PROTECTED]> wrote:
> > } else {
> > values.set(n, jobcount);
>
> jobHistory.put(username, values);
>
> (I'm only sending this because I'm concerned Alan may use some of this
> as-is, and get annoyed when his values don't update properly...)
>
> Wayne
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "The
Java Posse" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/javaposse?hl=en
-~----------~----~----~----~------~----~------~--~---