摘要:
public class IntegerDemo2 { public static void main(String[] args) { //自动装箱 // Integer i = new Integer(10); Integer i = 10; //自动拆箱 int a = i; // int a = i... 阅读全文
摘要:
* 由于基本数据类型只能做一些简单的操作和运算,所以Java为我们封装了基本数据类型,为每种基本数据类型提供了包装类 * 包装类就是封装了基本数据类型的类,为我们提供了更多复杂的方法和一些变量 * * byte Byte * short Short * char Character * int In 阅读全文