I am new, and also i am a java programmer, well i wanna become a good one and learning. (student).....

Code: 
import javax.swing.JOptionPane;
public class GetUserInput
{
    public static void main(String[] args)
    {
        String input;
        boolean done = false;
        while (!done)
        {
            input = JOptionPane.showInputDialog("Enter some input (or Cancel to finish):");
            if (input == null)
            {
                done = true;
            }
            else
            {
                JOptionPane.showMessageDialog(null, "You entered " + input);
            }
        }
    }
}
Write a program called GetUserInput.java that allows the user to enter the prices of several items they have bought and then tells them the total amount. The user can enter the prices for as many items as they want, until they click Cancel. The program should then output the total amount they spent, in a message dialog box. Use pounds for all the amounts.



I have really been trying really hard to understand but its just not working!!!!!!!!!!!!!!

Please help me
allmighty581772 Reviewed by allmighty581772 on . Java Issue I am new, and also i am a java programmer, well i wanna become a good one and learning. (student)..... import javax.swing.JOptionPane; public class GetUserInput { public static void main(String args) { String input; boolean done = false; while (!done) Rating: 5