1、Obejct---->String类型
String a=ob.toString()
2. String ----> Int类型
方法一:
int i = Integer.parseInt(str);
方法二:
int i = Integer.valueOf(str).intValue();
3. Int ----> String类型
方法一:
String s = String.valueOf(i);
方法二:
String s = Integer.toString(i);
4. Integer----> Int类型
Integer A=new Integer(5);
int a=A.intValue();
5. Int----> Integer类型
方法一:
int a=3;
Integer A=new Integer(a);
方法二:
Integer A=Integer.valueOf(a);