java function to find an item in array code example Example: java find element in array array[array.indexOf(element)]