验证中...
gistfile1.txt
Raw Copy
String[] arr = {"a", "b", "c", "c"};
HashSet<String> set = new HashSet<>(Arrays.asList(arr));
set.remove("a");
String str = set.stream().collect(Collectors.joining(";"));
System.out.println(str);//结果:b;c

Comment list( 0 )

You need to Sign in for post a comment

Help Search