Java zdobądź unikalne elementy z tablicy

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