上一页 1 ··· 26 27 28 29 30
摘要: 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 朱在春 阅读(89) 评论(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 朱在春 阅读(66) 评论(0) 推荐(0) 编辑
摘要: package A;public class Josephu { public static void main(String[] args) { Manage1 manage1=new Manage1(); manage1.addBox(5); manage1.showBox(); manage1 阅读全文
posted @ 2021-07-25 10:22 朱在春 阅读(37) 评论(0) 推荐(0) 编辑
摘要: package A;import java.util.Stack;public class Manage1 { Box head=new Box(0,""); public void add(Box box){//增 Box temp=head; while (true){ if (temp.nex 阅读全文
posted @ 2021-07-23 12:37 朱在春 阅读(39) 评论(0) 推荐(0) 编辑
摘要: /* * 盒子类 * 其中box你可以理解为一个大盒子里面包裹着一个小盒子,或者将box理解为一个箭头 * 这里我更喜欢理解为那种礼品包装盒,一个大盒子里面包裹着一个小盒子,然后这个小盒子里面又包裹着一个小盒子, * 如此循环往复下去(数据量足够多的情况下) * */ public class Bo 阅读全文
posted @ 2021-07-23 10:29 朱在春 阅读(37) 评论(1) 推荐(0) 编辑
上一页 1 ··· 26 27 28 29 30