万金流
初次使用博客园,目前感觉还不错。 不知不觉用了4年零4个月了,越来越喜欢博客园。
摘要: p65页第4题 思路书上有 参考代码: import java.util.Stack; public class c1 { public static void main(String[] args) { // TODO Auto-generated method stub Stack<String 阅读全文
posted @ 2020-11-02 15:41 万金流 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 如题 由数组构成的顺序栈: public class Array_Stack { int[] a=new int[10]; int p=-1; public boolean isEmpty() { boolean b=false; if(p 1) { b=true; } return b; } pu 阅读全文
posted @ 2020-11-02 15:39 万金流 阅读(159) 评论(0) 推荐(0) 编辑