public static < T > T mode ( Collection < T > values ) { Set < T > modes = modes ( values ) ; return modes . iterator ( ) . next ( ) ; }
Returns the mode in the Collection . If the Collection has multiple modes this method picks one arbitrarily .