Don't know why your previous post was overlooked; I suspect you posted it in
an inappropriate location. Welcome to the Ranch, even though it is late
.
[Pedantic mode]There is no such thing as a 2D array in Java™. Only arrays of arrays.[/Pedantic mode]
Get a piece of paper, and a pencil and (most important
) an eraser, and write down
prices [0][0] = 1.23, prices[0][1] = 2.34, prices[0][2] = 3.45, and then add the other rows. Now see if you can work out how to add the three together. Once you see what you are doing, on paper, it will be easy to convert that to code.