会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Joker Pan
博客园
首页
新随笔
联系
订阅
管理
2014年7月15日
简单的求数组的最大值及最小值
摘要: int[] arr={1,2,43,45,6,96,2};int max=-1;int min=-1;for(inti=0;imax){ max=temp; } if(temp<min){ min=temp; }System.out.println("min is"+min);System.out....
阅读全文
posted @ 2014-07-15 11:37 Joker Pan
阅读(168)
评论(0)
推荐(0)
编辑
公告