📜  如何从数组列表中获取数据以设置java代码示例

📅  最后修改于: 2022-03-11 14:52:06.764000             🧑  作者: Mango

代码示例1
public void givenUsingCoreJava_whenListConvertedToSet_thenCorrect() {
    List sourceList = Arrays.asList(0, 1, 2, 3, 4, 5);
    Set targetSet = new HashSet<>(sourceList);
}