public static void main(String[] args) { String s= JOptionPane.showInputDialog("请输入你想输入的值", ""); System.out.println("s = " + s ); }