Collections.max(arraylist) doesn\'t work, and a regular for loop won\'t work either.
Collections.max(arraylist)
for
What I have is:
ArrayList
here is the simple method that return a max value from arraylist
public static object GetMaxValue(ArrayList arrayList)
{
ArrayList sortArrayList= arrayList; sortArrayList.Sort(); sortArrayList.Reverse(); return sortArrayList[0];
}