67,512
社区成员
发帖
与我相关
我的任务
分享
public class Example{
public static void main(String[] args) {
String a = new String("ABC");
String b = new String("ABC");
if( a == b )
System.out.println("== equals") ;
else
System.out.println("== not equal");
}
}