Here you can find the source of byteToByteArray(byte number)
public static byte[] byteToByteArray(byte number)
//package com.java2s; //License from project: Apache License public class Main { public static byte[] byteToByteArray(byte number) { return new byte[] { number }; }/*from ww w .j ava2 s . c om*/ }