code: public static byte[] removeEntry(byte[] a, int idx) {
          byte[] b = new byte[a.length - 1];
          for (int i = 0; i < b.length; i++) {
              if (i < idx) {
                  b[i] = a[i];
              } else {
                  b[i] = a[i + 1];
              }
          }
          return b;
      }
docs: Gets a copy of the array with the specified entry removed.
  
  @param a The input array.
  @param idx The entry to remove.
  @return A new array with the entry removed.