import javax.swing.JOptionPane;;
public class Biaobai {
public static void main(String[] args) {
// TODO 自动生成方法存根
String str=null;
do {
str=JOptionPane.showInputDialog(null,"输入“我喜欢你”,不然不准你关闭了","杨创宇的表白程序",JOptionPane.PLAIN_MESSAGE);
} while (!"我喜欢你".equals(str));
JOptionPane.showMessageDialog(null, "我也喜欢你");
}
}
java自制窗口表白程序不打我喜欢你就不能退出窗口(必须在安装了jdk的电脑上运行)
最新推荐文章于 2024-05-17 13:09:45 发布