2. Remove a duplicate Entry from the given array.
Anonimo
public class RemoveDuplicateNumbers { public static void main(String[] args) { int arr[] = { 10, 10, 10, 20, 30, 40, 50, 60, 30 }; int len = arr.length; List ans = new ArrayList(); for (int i = 0; i = 1) System.out.print(arr[i] + " "); } ans.add(arr[i]); } } }