例如;String st1="hello";String st2="hello";System.out.println(st1==st2);结果输出为true改为String st1="hello";String st2="word";System.out.println(st1==st2);结果输出为falsejava中说用==比较的是两个字符串在栈内的地址值,请问为什么我改变了str2中的内容后结果就为false了?更多 0