java get unique elements from array

83

java get unique elements from array -

String[] unique = Arrays.stream(array).distinct().toArray(String[]::new);

Comments

Submit
0 Comments