Java Long 类型的判断是否相同

.longValue()取出值

if(longval1.longValue()==longval2.longValue()){

}

  

原文地址:https://www.cnblogs.com/gjths/p/12208551.html