public class ZArrays
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> int |
indexOf(T[] array,
T value)
Find the first index of the given object in the array.
|
static <T> int |
lastIndexOf(T[] array,
T value)
Find the last index of the given object in the array.
|
public static <T> int indexOf(T[] array,
T value)
T - object typearray - haystackvalue - needlepublic static <T> int lastIndexOf(T[] array,
T value)
T - object typearray - haystackvalue - needle