public ArrayVal(double[] values){
  this.array=new double[values.length];
  for (int i=0; i < array.length; i++) {
    array[i]=values[i];
  }
  hashcode=Arrays.hashCode(array);
}

public ArrayVal ( double [ ] values ) { this . array = new double [ values . length ] ; for ( int i = 0 ; i < array . length ; i ++ ) { array [ i ] = values [ i ] ; } hashcode = Arrays . hashCode ( array ) ; }
creates a new array of doubles
