摘要:
一.包装类与基本数据类型比较 1 public class IntegerDemo { 2 public static void main(String[] args) { 3 4 int i = 10; 5 Integer ii = 10; 6 System.out.println(i == ii 阅读全文
posted @ 2020-03-20 17:12
showMeTheCodes
阅读(343)
评论(0)
推荐(0)
摘要:
一.包装类 包装类:将基本类型封装到一个类中,包含属性和方法 使用:在使用过程中,会涉及到自动装箱和自动拆箱 装箱:将基本数据类型转换成包装类 拆箱:将包装类转换成基本数据类型 1 public class IntegerDemo { 2 public static void main(String 阅读全文
posted @ 2020-03-20 17:10
showMeTheCodes
阅读(283)
评论(0)
推荐(0)

浙公网安备 33010602011771号