Duplicating byte array multiple times
It can be made shorter:

public static void main(String[] args) {
    byte[] result = new byte[] {0x41, 0x42, 0x43, 0x44};
    byte[] multipled = new byte[result.length * 5];
    for (int i = 0; i &lt; multipled.length; i++)
        multipled[i] = result[i % result.length];
    ...
}