摘要: 基础类型 4种整数类型:int、long、byte、short 2种浮点数类型:float、double 1种字符类型:char 1种布尔类型:boolean 引用数据类型 类 接口 数组 1. == 1.对于基本类型来说 ==比较的是值是否相等 例如: int a = 1; int b = 1;S 阅读全文
posted @ 2020-01-03 22:59 归去如风 阅读(172) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/wang-yaz/p/8516151.html 一、什么是自动装箱拆箱 很简单,下面两句代码就可以看到装箱和拆箱过程 1 //自动装箱 2 Integer total = 99; 3 4 //自动拆箱 5 int totalprim = total; 阅读全文
posted @ 2020-01-03 22:00 归去如风 阅读(181) 评论(0) 推荐(0) 编辑