Here you can find the source of sort(byte[] b, int pos)
private static void sort(byte[] b, int pos)
//package com.java2s; public class Main { private static void sort(byte[] b, int pos) { byte[] tmp = new byte[pos]; System.arraycopy(b, 0, tmp, 0, pos); System.arraycopy(b, pos, b, 0, b.length - pos); System.arraycopy(tmp, 0, b, b.length - pos, pos); }/* ww w . j a v a 2 s.co m*/ }