// purpose: perform common list activities import java.util.*; public class ArrayMethod { // set(): set all elements of a to value public static void set( int[] a, int value ) { } // search(): report the index of the first occurrence of value in a. // if there are no occurrences, report -1 public static int search( int a[], int value ) { return 0; // replace with your code } // positive(): report whether all elements of a are >= 0 public static boolean positive( int[] a ) { return false; // replace with your code } // sorted(): report whether elements of a are in sorted order public static boolean sorted( int[] a ) { return false; // replace with your code } // equal(): report whether the elements of a and b are identical public static boolean equal( int[] a, int[] b ) { return false; // replace with your code } // add(): produce a new array whose elements are the sum of the // corresponding elements in a and b public static int[] add( int[] a, int[] b ) { return null; // replace with your code } }