I have setter method:
public void setValues(int[] values){
this.values = (double[])values;
}
and Java don't allow me to do that. I get message about inconvertible types. I know I can use Integers and doubleValue() method but above solution should work (I think).
So, what's wrong?