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:
Please note that Integer.parseInt throws an NumberFormatException if the passed string doesn't contain a parsable string.