Here you can find the source of splitInt(int value)
public static byte[] splitInt(int value)
//package com.java2s; public class Main { public static byte[] splitInt(int value) { byte[] bytes = new byte[2]; bytes[0] = (byte) value; bytes[1] = (byte) (value >>> 8); return bytes; }/*from ww w.java 2 s . co m*/ }