Using Strings?
in
Programming Questions
•
2 years ago
I basically need to take a string and make an integer equal it. How would I make the integer userInput equal to the string I get from the input.
Code:
Code:
- int userInput = ???????; //user's input
- import javax.swing.JOptionPane;
- String lolwut= JOptionPane.showInputDialog(frame, "input");
1