Long类型判断相等

Long类型判断相等不能使用 ==

有两种比较方法

  1. equals
  2. 调用longValue()方法之后比较

image

posted @ 2021-09-23 15:10  Dragon-Li  阅读(237)  评论(0)    收藏  举报