Question: ListHasGreater.java 1 package iteratorlisthasgreater; 3 import java.util.Iterator; 4 import java.util.List; Iterators - list has greater Implement the function public static boolean hasGreater (List numbers, int

ListHasGreater.java 1 package iteratorlisthasgreater; 3 import java.util.Iterator; 4 import java.util.List; Iterators - list has greater Implement the function public static boolean hasGreater (List numbers, int number) in the manner described by the Javadoc. 6 public class ListHasGreater { /** Returns true if the first argument contains a number greater than the * second argument; returns false otherwise. 10 * @param numbers A list of numbers 11 * @param number A number to compare 12 * @return whether first parameter contains a number greater than the 13 * second parameter 14 */ 15 public static boolean hasGreater (List
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
