Code this using arrays, please I have the following already written:
public static int sumUpDown(int[] nums, int max) { int sum = 0; boolean