【发布时间】:2014-02-10 07:27:29
【问题描述】:
为什么返回 true?
String b = "(5, 5)";
String a = "(7, 8)" ;
if(a.equals(b));
{
System.out.printf("Somehow \"%s\" and \"%s\" are the same" ,a,b);
}
输出:
Somehow "(7, 8)" and "(5, 5)" are the same
【问题讨论】:
标签: java string if-statement boolean