

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;
 
int number = int(JOptionPane.showInputDialog ("Enter an Integer"));
println(number);
 
String string = JOptionPane.showInputDialog ("Enter a String");
println(string);