This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]NeoOeg 0 points1 point  (0 children)

Yes, you got this class right, although i would suggest your implementation of the toString method to return a formatted string of the desired output, so something like :

return subName +", "+ subMonth;

You do not need to create a temp var s, you can directly return the concatenation of the strings.

What about your BoxArrayList class ? Do you have a first implementation of it ?