Java linear search.

This is an example of linear search in Java.