![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
代码收藏
iteye_8916
这个作者很懒,什么都没留下…
展开
-
冒泡排序的简单案列
public class BoubbleSort{ private static int[] arg =new int[10]; public BoubbleSort(){ arg[0]=10; arg[1]=3; arg[2]=16; arg[3]=44; arg[4]=53; arg[5]=55; arg[6]=23; arg[7]=83; arg[8]=...原创 2012-09-18 22:20:07 · 80 阅读 · 0 评论 -
堆栈的简单模拟
public class Stack{ int[] data; int maxSize; int top; /**初始化*/ public Stack(int maxSize){ this.maxSize=maxSize; data=new int[maxSize]; top=-1; } public boolean push(int data){ if(top+1==max...原创 2012-09-18 23:01:25 · 141 阅读 · 0 评论