public class Exercise2
{
public static void printEvenIndex(ArrayList list)
{
//Print the integers at the even indexes of the passed in array
}
public static void main(String[] args)
{
//instantiate an ArrayList named values nand fill with Integers
//fromt the supplied list
ArrayList<Integer> values = new ArrayList<Integer>();
int[] nums = {1, 5, 7, 9, -2, 3, 2};
System.out.println("Expected Result:\t 1, 7, -2, 2,");
System.out.print("Your Result:\t\t ");
printEvenIndex(values);
}
}
Im a little confused on what to do when it tell me to Print the integers at the even indexes of the passed in array.