集合在JDK9中的新特性

集合在JDK9中的新特性

JDK9有提供创建固定长度集合更便捷的方法;集合长度是不可变的

仅仅存在于:

  1. List.of(e…);
  2. Set.of(e…);
  3. Map.of(e…);

在这里插入图片描述
在这里插入图片描述

おすすめ

転載: blog.csdn.net/m0_58702068/article/details/120597696