/* * Utilities.java * * Created on January 13, 2003, 7:05 PM */ package project1; /** Static utilities involving oracles and omens. At present the class contains only a single method. * * @author dickey */ public class Utilities { /** Tell which omen is the most favorable. **** This is a stub -- complete it for Project 1 according to specs below. *** **** You may not modify the signature **** * @param omens an array of omens, some or all of which may be null. Make no assumption about the length of the array. It may be assumed that all of the omens are of the same type; however, make no assumption about exactly WHAT type of omen it is. It is possible that the argument itself is null, or that it has length 0. * @return The most favorable omen, or null if the array contained no omens. */ public static IOmen chooseBestOmen(IOmen[] omens) { /* stub implementation */ IOmen bestOmen = null; return bestOmen; //end chooseBestOmen } //end utilities }