Collection 是集合类的上层接口,直接子类有 List、Set、Queue 等;
Collections 是集合类的一个帮助类,它提供了一系列的静态方法供集合类及其子类使用。
Collection 与 Collections 的区别?
最新推荐文章于 2022-08-10 14:08:23 发布
Collection 是集合类的上层接口,直接子类有 List、Set、Queue 等;
Collections 是集合类的一个帮助类,它提供了一系列的静态方法供集合类及其子类使用。