How can you use: JOptionsPane.showInputDialog to use switch for names as a string. Example below but it does not work:
import javax.swing.JOptionPane;
class JOptionsPane {
String name = JOptionsPane.showInputDialog(null, "Enter name");Switch(name);Case"Jeramy";Case"James";break;Case"Carl";break;
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here