hi
im new to java and i have a question about the following program. basically, i want to get the user input and show and output on the screen, however, the input dialogue doesn't show and i dont know why??
thanks in advanceCode:package math;
import javax.swing.JOptionPane;
public class NewClass {
int PIN = 1234;
double account_number;
double beg_bal = 1000.0;
String user_name;
public static void main (String[] args){
new NewClass();
}
public double deposit(String amount){
double a;
amount = JOptionPane.showInputDialog("Enter the amount to deposit: ");
a = Double.parseDouble(amount);
beg_bal = beg_bal + a;
System.out.println("Your new balance is:\n");
JOptionPane.showMessageDialog(null,"Your new balance is:"+ beg_bal,"Results",JOptionPane.PLAIN_MESSAGE);
System.exit(0);
return (beg_bal);
}
public double withd_transfer(String amount){
double b;
amount = JOptionPane.showInputDialog("Enter the amount to withdraw/transfer: ");
b = Double.parseDouble(amount);
beg_bal = beg_bal + b;
System.out.println("Your new balance is:\n");
return (beg_bal);
}
}

