

In this task, the goal is to input a string and the integer 75000, from graphical user interface.



See also: User input/Text

/* NetRexx */
options replace format comments java crossref symbols nobinary
import javax.swing.JOptionPane
 
unumber = 0
ustring = ''
 
do
  unumber = Integer.parseInt(JOptionPane.showInputDialog("Enter an Integer"))
  ustring = JOptionPane.showInputDialog("Enter a String")
catch ex = Exception
  ex.printStackTrace
end
 
unumber = unumber * 1.0 -- just to prove unumber is really a number
say 'Number:' unumber.right(10)', String:' ustring
 
return
 