JOptionPane Input Dialog Problem
Posted: Thu Jan 15, 2015 9:43 am
Because I am a VB.NET Programmer . I don't know what the hell is going on in my code.
I am a college student and we are now on JAVA programming.
Ok so I'm trying to do a JOptionPane and this is my code :
PS : there is no error at all. And I don't know what is happening.
I am a college student and we are now on JAVA programming.
Ok so I'm trying to do a JOptionPane and this is my code :
Code: Select all
When I started to run this. Only the First and Second number was running. I wait for the InputDialogBox to appear but nothings happen. Scanner nn = new Scanner (System.in);
String dlg;
int n1,n2,x1;
System.out.print("First Number : ");
n1 = nn.nextInt();
System.out.print("Second Number : ");
n2 = nn.nextInt();
dlg = JOptionPane.showInputDialog("Enter your Choice :");
PS : there is no error at all. And I don't know what is happening.