单选题The output of the following code is ____________. ( )LinkedHashSet<String> set1 = new LinkedHashSet<>();Set1.add("New York");LinkedHashSet<String> set2 = set1;Set1.add("Atlanta");Set2.add("Dallas");System.out.println(set2);
选项:
A:New York]
B:New York, Atlanta]
C:New York, Atlanta, Dallas]
D:New York, Dallas]
发布时间:2024-03-31 20:42:30