if(String == String)

即使 String 对象的 值一样,但是String 比较的是地址值,即 2 个String 对象 有2个String地址值,比较起来,一定不一致。比较String 用 A.equals(B)

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注