class SommaArray1 {

  public static double somma(double[] a) {
    double som = 0;
    for(int i=0; i<a.length; i++) som += a[i];
    return som;
  }

  public static void main(String args[]) {
    double[] unArray = {3.5, 28, -13, 3.14, 47.51};
    System.out.println("la somma e' " + somma(unArray));

    int[] intArray = null;
    int n = intArray.length;
  }
}