[java] How do I determine whether an array contains a particular value in Java?