Renderings:
The source code is as follows:
package cn;
import javax.swing.*;
public class main {
public static void main(String[] args) {
String name = "我是明哥";
int a = 1;
while (a == 1) {
String s = JOptionPane.showInputDialog("请输入我是明哥");
int r = s.compareTo(name);
if (r == 0)
a = 0;
else
System.out.println("还想骗我");
}
JOptionPane.showMessageDialog(null, "对嘛,你很懂你自己嘛!");
}
}