Anonymous user
User input/Graphical: Difference between revisions
→{{header|Processing}}
(→{{header|Processing Python mode}}: int conversion fail-safe) |
|||
Line 2,554:
int number = int(JOptionPane.showInputDialog ("Enter an Integer"));
println(number);
String string = JOptionPane.showInputDialog ("Enter a String");
println(string);</lang>
==={{header|Processing Python mode}}===
Line 2,570 ⟶ 2,572:
number = to_int(JOptionPane.showInputDialog ("Enter an Integer"))
println(number)
string = JOptionPane.showInputDialog ("Enter a String")
println(string)</lang>
=={{header|PureBasic}}==
|