Various numeric types are converted to String type:
String s = string.valueof (value); Where value is any one of the numeric types.
The string type converts to various numeric types:
String s = "169";
byte B = byte.parsebyte (s);
Short T = Short.parseshort (s);
int i = Integer.parseint (s);
Long L = Long.parselong (s);
Float f = float.parsefloat (s);
Double d = double.parsedouble (s);
Conversion between numeric types and numeric class objects:
BYTE B = 169;
byte Bo = new byte (b);
b = Bo.bytevalue ();
Short T = 169;
Short to = new short (t);
t = To.shortvalue ();
int i = 169;
b = Bo.bytevalue ();
Short T = 169;
Short to = new short (t);
t = To.shortvalue ();
int i = 169;
Integer io = new Integer (i);
i = Io.intvalue ();
Long L = 169;
Long lo = new Long (l);
L = Lo.longvalue ();
float F = 169f;
float fo = new float (f);
f = Fo.floatvalue ();
Double d = 169f;
Double dobj = new Double (d);
D = Dobj.doublevalue ();