![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
2770843230
这个作者很懒,什么都没留下…
展开
-
java 插入排序
int num[] = {20,10, 30 ,50,60}; int temp; for(int i = 0; i for (int j = i;j>0;j--){ if(num[j]>num[j-1]){ temp = num[j-1];原创 2017-04-13 16:57:17 · 127 阅读 · 0 评论 -
java 冒泡排序
int num[] = {55,12, 34 ,52,66}; int temp; for(int i = 0; i for (int j = 0; j { if(num[j]>num[j+1]){ temp = num[j];原创 2017-04-13 17:03:04 · 168 阅读 · 0 评论