0
How do I use String in JOptionPane
When I use JOptionPane.showInputDialog than I use ....charAt(0) for char and Double.ParseDouble and so on. What do I use for Strings?
2 Respostas
+ 1
why would you use that for string..
create string name= JOptionPane.showInputDialog("Name");
or u can pass the variable..
String full_name= "Sami Khan";
JOptionPane.showMessageDialog(null,full_name);
0
If I want sb. to enter their name in the Input Dialog and if its equal to a specific name I entered it must show sth else as if its an other name