class Calcular { Double med; int i; int total; total = arrayNumeros.length; public Double Media(Double[] arrayNumeros){ for(i=0; i<total; i++){ med+=arrayNumeros[i]; } return med/total; }}