Arrays.stream("Monday,Monday,Friday,Friday".split(","))
.distinct()
.collect(Collectors.joining(","));
4
solved How to cast a String as an Array then dedupe Array in Java? [closed]
Arrays.stream("Monday,Monday,Friday,Friday".split(","))
.distinct()
.collect(Collectors.joining(","));
4
solved How to cast a String as an Array then dedupe Array in Java? [closed]