Collections are collection tools

java. utils.Collections is a collection tool class, used to operate collections. Some methods are as follows:
public static <T> boolean addAll(Collection<T> C. T... elements): Add some elements to the collection.
public stotic void shuffle(List<?> list) Shuffle the order; disrupt the collection order.

Guess you like

Origin blog.csdn.net/weixin_51980491/article/details/112925587