public int indexOf(Object object) {if (object != null) {for (int i = 0; i < a.length; i++) {if (object.equals(a[i])) {return i;}}} else {for (int i = 0; i < a.length; i++) {if (a[i] == null) {return i;}}}return -1;}

public int indexOf ( Object object ) { if ( object != null ) { for ( int i = 0 ; i < a . length ; i ++ ) { if ( object . equals ( a [ i ] ) ) { return i ; } } } else { for ( int i = 0 ; i < a . length ; i ++ ) { if ( a [ i ] == null ) { return i ; } } } return - 1 ; }
public override int indexOf(object @object){if (@object != null){{for (int i = 0; i < a.Length; i++){if (@object.Equals(a[i])){return i;}}}}else{{for (int i = 0; i < a.Length; i++){if ((object)a[i] == null){return i;}}}}return -1;}
