I am trying to make a JOptionPane get an input and assign it to an int but I am getting some problems with the variable types.
I am trying something like this:
String String_firstNumber = JOptionPane.showInputDialog("Input Semisecond"); int Int_firstNumber = Integer.parseInt(firstNumber);
Now your Int_firstnumber contains integer value of String_fristNumber.
Int_firstnumber
String_fristNumber
hope it helped