package class3_1; import javax.swing.JOptionPane; public class GuiExample { public static void main(String[] args) { String result = JOptionPane.showInputDialog("What is the water's temp? (deg. C)"); JOptionPane.showMessageDialog(null,"You entered: "+result); } }