会员
众包
新闻
博问
闪存
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
爱学习~天天学习
博客园
首页
新随笔
联系
管理
订阅
2016年2月26日
Java中的几种排序算法:冒泡排序,插入排序,二分法排序,简单排序,快速排序
摘要: 冒泡排序: int[] hehe={4,7,2,5,6,9,0}; for(int i=0;i<hehe.length;i++){ for(int j=i+1;j<hehe.length;j++){ if(hehe[i]>hehe[j]){ int temp=hehe[i]; hehe[i]=heh
阅读全文
posted @ 2016-02-26 10:56 爱学习~天天学习
阅读(395)
评论(0)
推荐(0)
编辑
公告