摘要: #基本类型、包装类、字符串之间的转换 1、基本类型和包装类 基本类型和包装类可通过自动装箱和拆箱实现。 int i = 24; Integer a = new Integer(i); //手动装箱 Integer b = i; //自动装箱 int x = a; //自动拆箱 int y = a.i 阅读全文
posted @ 2023-03-23 17:31 novice_programmer_oo 阅读(69) 评论(0) 推荐(0)