Я пытаюсь выбрать младшие 4 бита последнего байта в массиве байтов.Вот как я делал это ранее в PHP, но я новичок в Java.
$lower4bit = substr($bytes[19], -1);
//Convert the hex to decimal to get the offset value
$offset = hexdec($lower4bit);
//Select the value of the 4 bytes starting at the offset
$joinedArray = implode(array_slice($bytes, $offset, 4));
Может кто-нибудь указать мне правильное направление с Java?