I don't have much on this... my assignment is to create a recursion method that will output the highest value in an ArrayList of integers.
public static int maxValue(ArrayList<Integer> a)
{
if (a.isEmpty()) throw new NoSuchElementException ("Can't compute max of empty list.");
if(a.size()==1){return a.get(0);}
else {
//not sure what to add here for the recursion
}
}