Java Byte to Byte Array byteToByteArray(byte number)

Here you can find the source of byteToByteArray(byte number)

Description

byte To Byte Array

License

Apache License

Declaration

public static byte[] byteToByteArray(byte number) 

Method Source Code

//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*/
}

Related

  1. byteToByte(byte[] in)
  2. byteToBytes(byte src)
  3. byteToBytes(byte x)