how to find max number from an arraylist in java