import javax.swing.*;
import java.util.Scanner;
public class hi {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
JOptionPane.showMessageDialog(null, "hi!");
String yourname=JOptionPane.showInputDialog(null, "你叫什么名字?");
JOptionPane.showMessageDialog(null, "hi!"+yourname);
System.exit(0);
}
}
在对话框中和java打个招呼吧
猜你喜欢
转载自blog.csdn.net/m0_51794965/article/details/115156950
今日推荐
周排行