基本数据类型 –> 包装类
Integer i1 = Integer.valueOf(23);
Integer i2 = new Integer(24);
Integer i3 = 25;
包装类 –> 基本数据类型
int i4 = i1.intValue();
int i5 = i2;
字符串 –> 基本数据类型
int i6 = Integer.parseInt("110");
int i7 = new Integer("110");
基本数据类型 –> 字符串
String s1 = String.valueOf(123);
String s2 = Integer.toString(123);
String s3 = "" + 123;
String s4 = i1.toString();