Here you can find the source of intToBytesSizeOne(int integer)
public static byte[] intToBytesSizeOne(int integer)
//package com.java2s; //License from project: Apache License public class Main { public static byte[] intToBytesSizeOne(int integer) { byte[] bytes = new byte[1]; bytes[0] = (byte) (integer); return bytes; }/*w w w . j ava 2 s .com*/ }