Finding the element in an array of ints.

Searching single element in array of integers with duplicates.
Implemented in Java.