I searched everything about this but I found nothing. So I have an Integer array and I would like to remove elements duplicated on it with stream api, for example:
Integer[] buffer = new Integer[]{10,23,8,10,8,1,2,1};
after this -> buffer = Stream.of(buffer)...
buffer now has these numbers {10,23,8,10,1,2}
So I hope you understand what I mean and I thank you for helping me.