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
import java.util.*;
public class Duplicates {
public static void main(String[] args) {
// TODO Auto-generated method stub
int [] myArray = {1,3,2,4,3,2,3,4,5,6,7,6,5,4,3,4,5,6,76,5,4,3,4,4,5};
List myList = new ArrayList ();
myList = removeDuplicates(myArray);
//Printing Output
for (int k=0; k removeDuplicates(int[] myArray) {
// TODO Auto-generated method stub
Arrays.sort(myArray);
List myList = new ArrayList ();
for (int i=0; i
}