class ArrayUtil {

  public static <T> int getNullIndex(final T[] array) {
    for (int i = 0; i < array.length; i++) {
      if (array[i] == null) {
        return i;
      }
    }
    return -1;
  }

  private  ArrayUtil();

}