import java.util.Scanner;
Scanner scanner = new Scanner(System.in);
intnum = scanner.nextInt();
import javax.swing.JOptionPane;
String result = JOptionPane.showInputDialog(null,“你的名字是什么”);
JOptionPane.showMessageDialog(null,"你好"+result+"!");
import java.util.Scanner;
Scanner scanner = new Scanner(System.in);
intnum = scanner.nextInt();
import javax.swing.JOptionPane;
String result = JOptionPane.showInputDialog(null,“你的名字是什么”);
JOptionPane.showMessageDialog(null,"你好"+result+"!");