Byte valueOf(byte b)
convert byte to a Byte.
valueOf
has the following syntax.
public static Byte valueOf(byte b)
valueOf
has the following parameters.
valueOf
returns
a Byte instance representing b.
In the following code shows how to use Byte.valueOf(byte b) method.
public class Main { public static void main(String[] args) { System.out.println( Byte.valueOf((byte)12) ); } }
The code above generates the following result.