Remove Duplicates From Int Array
There are many ways to remove duplicate items A) Using for Loop package InterViewQuestions; public class RemoveDuplicatesFromArray { public static void main(String[] args) { Integer[] integer_Array = {50, 50, 100, 100, 99, 99, 9, 9, 100, 100}; int [] temp = new int[integer_Array.length]; for(int i =0; i< integer_Array.length; i++){ for(int j = i+1; j <…