“.equals”和“=”之间有什么区别?
.equals
if (o1.equals(o2)){
System.out.println("Both integer objects are the same");}if (o1 == o2){
System.out.println("Both integer objects are the same");}.equals
慕码人8056858
拉风的咖菲猫
慕的地6264312
幕布斯6054654
随时随地看视频慕课网APP
相关分类