摘要: Integer与int之间的比较与判断 1、int和int之间,用==比较,肯定为true。基本数据类型没有equals方法 2、int和Integer比较,Integer会自动拆箱,== 和 equals都肯定为true 3、int和new Integer比较,Integer会自动拆箱,调用int 阅读全文
posted @ 2021-02-20 20:19 没有你哪有我 阅读(71) 评论(0) 推荐(0)