import javax.swing.JOptionPane; public class InstantInputDialog { public static void main(String[] a) { String input = JOptionPane.showInputDialog("Enter Input:"); System.out.println(input); } }