How does one replace last element of full stack with new element? (java)

后端 未结 0 1974
抹茶落季
抹茶落季 2021-01-28 22:14
public class ourStack1 {
    private int elements[];
    private int index;      // indicate the next position to put a new data
    private int size;
    
    public ou         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题