package de.ugoe.cs.util; final public class ArrayTools { /** *

* Finds the first occurence of an object inside an array. *

*

* In case {@code other==null}, the first occurence of a {@code null} value in the array is returned. *

* * @param array the array * @param other the object * @return index of the object if found, -1 otherwise */ public static int findIndex(Object[] array, Object other) { int retVal = -1; for( int i=0 ; i