摘要: package A;import java.util.ArrayList;//此程序你可以验算你的逆波兰表达式有没有写对//4*5-8+60+8/2=4 5 * 8 - 60 + 8 2 / +//其实逆波兰表达式并不难,也是由我们常用的中缀表达式转换来的,仔细写一下就知道了public class 阅读全文
posted @ 2021-07-26 16:01 朱在春 阅读(157) 评论(0) 推荐(0) 编辑
摘要: package A;public class JosePhu { public static void main(String[] args) { String expression="300+2*6-2"; //你可以画两个表示栈的图 ArrayStack numStack=new ArraySt 阅读全文
posted @ 2021-07-26 11:42 朱在春 阅读(88) 评论(0) 推荐(0) 编辑
摘要: package A;import java.util.Scanner;public class JosePhu { public static void main(String[] args) { ArrayStack arrayStack = new ArrayStack(3); boolean 阅读全文
posted @ 2021-07-26 00:16 朱在春 阅读(65) 评论(0) 推荐(0) 编辑