Prices is an array, not a number. Perhaps you ought to be able to add an array to an integer and get some meaningful number, but in Java it's not so.
You need to find a way to tell the compiler what you mean. Presumably, you want the total of the values in prices? How would you go about adding those up?
(Tong - We all know you're smart now. Please let him figure it out!)
jon.kiparsky
Posting Virtuoso
1,849 posts since Jun 2010
Reputation Points: 383
Solved Threads: 187
You are almost there, at least on this particular problem. The change you're looking for is a pretty minor one.
jon.kiparsky
Posting Virtuoso
1,849 posts since Jun 2010
Reputation Points: 383
Solved Threads: 187
And by the way - I am a her LOL.
My apologies. You figured it out, in any case, and that's the important part. Now on to the next project, right?
jon.kiparsky
Posting Virtuoso
1,849 posts since Jun 2010
Reputation Points: 383
Solved Threads: 187