Interger常用API

 

String

 

toBinaryString(int i) 

 

Returns a string representation of the integer argument as an unsigned integer in base 2.

static String toHexString​(int i)

Returns a string representation of the integer argument as an unsigned integer in base 16.

static String  toOctalString​(int i)

Returns a string representation of the integer argument as an unsigned integer in base 8.

String toString​()

Returns a String object representing this Integer's value.      

static String toString​(int i)

Returns a String object representing the specified integer.

static Integer  valueOf​(int i)

Returns an Integer instance representing the specified int value.

static Integer valueOf​(String s)

Returns an Integer object holding the value of the specified String.

 

你可能感兴趣的:(Interger常用API)