static intMAX_VALUEA constant holding the maximum value an int can have, 2^31-1.static intMIN_VALUEA constant holding the minimum value an int can have, -2^31.
1.和其他基本数据类型的装换:
int(short,float,byte,long,double)Value(),
2.从字符串转换为int:
static int parseInt(String s)
3.转换为字符串
static String toString(int i)
Returns a String object representing the specified integer.
还可以用String的: static String valueOf(int i)
String to String()
Returns a String object representing this Integer’s value.
4。String /int->Integer
static Integer valueOf(String s)
Returns an Integer object holding the value of the specified String.
static Integerv alueOf(int i)