arraythe Object array to be sorted.
TypeReasonJava.Lang.ClassCastExceptionif any element does not implement Comparable, or if compareTo throws for any pair of elements.
Sorts the specified array in ascending natural order.
[Android Documentation]