@@ -0,0 +1,538 @@
+import java.util.*;%0Aimport java.io.*;%0Aclass first_rep%0A%7B%0A    public static void main(String args%5B%5D)%0A    %7B%0A        Scanner scan = new Scanner (System.in);%0A        int n = scan.nextInt();%0A        int a%5B%5D= new int%5Bn%5D;%0A        for(int i=0;i%3Cn;i++)%0A            a%5Bi%5D= scan.nextInt();%0A        for(int i=0;i%3Cn;i++)%0A        %7B%0A            for(int j=i+1;j%3Cn;j++)%0A            if(a%5Bi%5D == a%5Bj%5D)%0A            %7B%0A                System.out.println(%22The number %22+a%5Bi%5D+%22 is first elment repeated in the array%22);System.exit(0);%0A            %7D%0A        %7D%0A    %7D%0A%7D%0A

Create first_rep.java