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
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.