This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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  = 1.23, prices = 2.34, prices = 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.
Joined: Oct 13, 2005
puneeth poduri wrote:hi,
please add an action listener to the add button . . .
I think you have misunderstood the problem. Look at this thread.
Joined: Sep 10, 2010
How do I make the program to allow three users to put in their meal prices
If I run this, it only allows one input and displays it as 3 input in the array