public class g_george_hw_1 { public static void main(String[] args) { Integer[] input = { 100, 37, 49 }; boolean result1 = contains (input, new Prime() ); boolean result2 = contains (input, new PerfectSquare() ); boolean result3 = contains (input, new Negative() ); System.out.println("Result 1: " + result1); System.out.println("Result 2: " + result2); System.out.println("Result 3: " + result3); } public static boolean contains ( AnyType [] Arr, FinderInterface Obj) { return Obj.finder((Number[]) Arr); } public interface FinderInterface { public boolean finder (AnyType[] arr); } public static class Prime implements FinderInterface { @Override public boolean finder(Number[] noArray) { boolean found = false; for ( Object i: noArray ) { int no = (Integer) i; if ( found ) return true; found = true; for ( int j=2; j