public static void main(String args[]) { byte[] testCommand = {0x2, 0x35, 0x35, 0x35, 0x35, 0x20, 0x36, 0x36, 0x36, 0x36, 0xA}; Vector commands = StringUtil.parseCommand(testCommand); System.out.println("Vector size=" + commands.size()); }