字符串这样什么不行
import javax.swing.JOptionPane;
public class processInputData {
public static void main(String[] args) {
String name;
while (true) {
name = JOptionPane.showInputDialog(null,"Enter Name:");
if(name=="ai"){
System.out.println("程序结束");
break;
}
}
}
}