java中的语法错误
import javax.swing.*;public class Hekk{
public static void main(String[] args) {
String chinese = "";
String english = "";
JOptionpane.showInputDialog("请输入您要翻译的英语!");
if (english == "select" ) chinese = "选择";
else if (english == "result") chinese = "结果";
else if (english == "width') chinese = "宽度";
else if (english == 2) chinese = "左边";
//else if (english == System.arraycopy) chinese = "拷贝命令";
else chinese = ("你的输入不存在!");
JOptionPane.showMessageDialog(null , chinese);
System.exit(0);
}
}
这程序有误,请各位朋友帮我修改正。。谢谢···