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