static Byte valueOf(String s)
Throws:
static Byte valueOf(String s, int radix)
Throws:
_INSERT_METHOD_SIGNATURE_HERE_
Description:
valueOf(String s) method:
Assuming the specified String represents a byte, returns a new Byte object initialized to that value. Throws an exception if the String cannot be parsed as a byte. The radix is assumed to be 10.
valueOf(String s, int radix) method:
Assuming the specified String represents a byte, returns a new Byte object initialized to that value. Throws an exception if the String cannot be parsed as a byte.
Example
Byte by = Byte.valueOf("9");
The valueOf() method returns the Byte representation of the value 10.