文章列表
说明:Stack,和StirngStack,是工具类,协助编程
convertPRN是将中缀表达式转为后缀表达式
RPN是计算后缀表达式的值
1 statck接口
package DataStruct.Stack;
public interface Stack {
public void push(Object k);
public Object pop();
public boolean isEmpty();
public boolean isFull();
public Object peek();
}
2 StringStack类
package DataSt ...
- 2007-09-22 17:51
- 浏览 1411
- 评论(0)