判断某一字符串string是否为指定的值
private String image = "";
正确方式:
if (!image.equals("ss")) {
mHandler.sendEmptyMessage(200);
}
错误方式:
if (image != "ss") {
mHandler.sendEmptyMessage(200);
}
标签:200,Java,string,ss,image,mHandler,字符串,sendEmptyMessage
来源: https://blog.csdn.net/lps11188/article/details/112062829