public static int[] removeSameNumber(int[] input) {
removeSamenumber() takes numbers (int) to array and returns new array with deleted duplicates.
new int[] {2, 2} ==== new int[] {2}
new int[] {1, 2, 1, 3, 2} ==== new int[] {1, 2, 3}
List, Set or other dynamic collections must not be used. You only have to deal with arrays.
Existing functions such as Arrays.copyOf () must not be used.
I tried a lot of different things but none of them is working
Im beginner and your help would very help me out :)