Java tutorial
public class Main { public static void main(String[] argv) { byte[] bytes = new byte[] { 65, 66, 67, 68 }; System.out.println(new String(bytes, 5, 1, 3)); } }