/*
基本数据类型对象的包装类。
byte Byte
short Short
int Integer
long Long
boolean Boolean
float Float
double Double
char Character
基本数据类型对象包装类的最常见作用。
就是用于基本数据类型和字符串类型之间转换。
基本数据类型转成字符串。
基本数据类型+""
基本数据类型.toString();
字符串转成基本数据类型。
xxx a = Xxx.parseXxx(String);
*/
class IntegerDemo {
public static void sop(String str) {
System.out.println(str);
}
public static void main(String[] args) {
sop("int max:" + Integer.MAX_VALUE;
}
}
JAVA学习笔记(二十二) —— 基本数据类型对象的包装类
最新推荐文章于 2014-03-28 17:21:39 发布