public class Tervitus { public static double keskmine(int[] m){ int summa=0; for(int arv: m){ summa+=arv; } return summa*1.0/m.length; } public static int korruta(int a1, int a2){ return a1*a2; } public static void main(String[] arg){ System.out.println("Tere"); System.out.println(korruta(3, 6)); System.out.println(keskmine(new int[]{2, 3, 5})); } }