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