Type mismatch: cannot convert from double to double[]

I think you mean

this.stack = new double[default_capacity];

and also

this.stack = new double[capacity];

Leave a Comment