What is wrong with what is printed out now?
What you posted for the output looks like what you say you want.
Type: Posts; User: Norm
What is wrong with what is printed out now?
What you posted for the output looks like what you say you want.
Look at the definition of lottoticket. What kind of data does it hold?
Is that the kind of data being used in the add() method?
Hint: an array is not the same as the type of data in the array.