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?

14th Jun 2017, 7:29 PM
Julien Best
Julien Best - avatar
2 Answers
+ 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);
14th Jun 2017, 7:47 PM
Мг. ĐšĐœĐ°ĐżđŸŒ 
Мг. ĐšĐœĐ°ĐżđŸŒ  - avatar
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
14th Jun 2017, 8:21 PM
Julien Best
Julien Best - avatar