public static double mean2(Connection conn,double... values){
  conn.getClass();
  double sum=0;
  for (  double x : values) {
    sum+=x;
  }
  return sum / values.length;
}

public static double mean2 ( Connection conn , double ... values ) { conn . getClass ( ) ; double sum = 0 ; for ( double x : values ) { sum += x ; } return sum / values . length ; }
this method is called via reflection from the database .
