/* The below example shows how to avoid duplicate elements from an array and disply only distinct elements. Please use only arrays to process it. */ public class MyDisticntElements { public static void printDistinctElements(int[] arr) { for(int i=0; i