@@ -0,0 +1,1041 @@
+import java.io.*;%0Aimport java.util.*;%0A%0Apublic class Solution %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner s = new Scanner(System.in);%0A        int n = s.nextInt();%0A        int%5B%5D X = new int%5Bn%5D;%0A        int sum = 0;%0A        HashMap%3CInteger, Integer%3E h = new HashMap%3C%3E();%0A        for(int i=0;i%3Cn;i++)%7B%0A            X%5Bi%5D = s.nextInt();%0A            sum+=X%5Bi%5D;%0A            if(h.containsKey(X%5Bi%5D))%7B%0A                int c = h.get(X%5Bi%5D);%0A                h.put(X%5Bi%5D,++c);%0A            %7D%0A        %7D%0A        %0A        float mean = (float)sum/n;%0A        float median = (n%252==0)?(X%5Bn/2%5D+X%5B(n+1)/2%5D)/2:X%5Bn/2%5D;%0A        %0A        int mode = X%5B0%5D;%0A        int maxVal = 0;%0A        Iterator it = h.entrySet().iterator();%0A        while (it.hasNext()) %7B%0A            Map.Entry pair = (Map.Entry)it.next();%0A            int v = (int)pair.getValue();%0A            maxVal = Math.max(v,maxVal);%0A            mode = (int)pair.getKey();%0A        %7D%0A        System.out.println(mean);%0A        System.out.println(median);%0A        System.out.println(mode);%0A    %7D%0A%7D%0A

Create meanMedianMode.java