I having a problem with coding this:
Write a static method named removeDuplicates that takes as input an array of integers and returns as a result a new
removeDuplicates
try this.
int numbers[] = {1,2,3,4,1,2,3,4,5,1,2,3,4}; numbers = java.util.stream.IntStream.of(numbers).distinct().toArray();