Number - String Conversion Tools |
Wrapper |
Primitive
to String |
String to
Primitive |
Byte |
Byte.toString(byte
b) |
Byte.parseByte(String
s) |
Byte.parseByte(String
s,
int radix) |
Short |
Short.toString(short
s) |
Short.parseShort(String
s) |
Short.parseShort(String
s,
int radix) |
Integer |
Integer.toString(int
i) |
Integer.parseInt(String
s) |
Integer.toString(int
i,
int radix) |
Integer.parseInt(String
s,
int radix) |
Long |
Long.toString(long
l)
|
Long.parseLong(String
s) |
Long.toString(long
l,
int radix) |
Long.parseLong(String
s,
int radix) |
Float |
Float.toString(float
f) |
Float.parseFloat(String
s)
available for ver. 1.2 |
Float.valueOf(String
s).
doubleValue()
for version 1.0 & 1.1 |
Double |
Double.toString(double
d) |
Double.parseDouble(String
s)
available for ver. 1.2 |
Double.valueOf(String
s).
doubleValue()
for version 1.0 & 1.1 |