I think you mean
this.stack = new double[default_capacity];
and also
this.stack = new double[capacity];
4
solved 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];
4
solved Type mismatch: cannot convert from double to double[]