Seems like a basic setter… It should go like
public void setCapacity(int newCapacity) {
this.capacity = newCapacity;
}
solved java method which can be changed
Seems like a basic setter… It should go like
public void setCapacity(int newCapacity) {
this.capacity = newCapacity;
}
solved java method which can be changed