

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



See also: User input/Text

import javax.swing.JOptionPane
 
def number = JOptionPane.showInputDialog ("Enter an Integer") as Integer
def string = JOptionPane.showInputDialog ("Enter a String")
 
assert number instanceof Integer
assert string instanceof String