Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java SE 综合讨论区 » 编程/算法/API  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:求教!!!关于排序问题 [Re:flydog123456]
wujinlei





发贴: 6
积分: 0
于 2004-12-05 20:31 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
排序好象是很简单的问题啊
偶有一个例子:
public class Paixu
{
public static void main(String args[])
{
int temp=0;
int ints[]={11,27,43,,4};
for (i=0;i<=3;i++)
for(i=i+1;j<=3;j++)
{
if(ints[i]>ints[j])
{temp=ints[i];ints[i]=ints[j];ints[j]=temp;}
}
for(i=0;i<=3;i++)
System.outm.println(ints[i]);
}
}




话题树型展开
人气 标题 作者 字数 发贴时间
14170 求教!!!关于排序问题 flydog123456 22 2004-11-17 19:48
11434 Re:求教!!!关于排序问题 littledeer1974 10 2004-11-17 19:52
11432 Re:求教!!!关于排序问题 jameszhang 313 2004-11-17 20:09
11642 Re:求教!!!关于排序问题 flydog123456 94 2004-11-18 19:03
11339 Re:求教!!!关于排序问题 jameszhang 32 2004-11-18 19:27
11307 Re:求教!!!关于排序问题 april518 98 2004-11-26 16:29
11362 Re:求教!!!关于排序问题 april518 98 2004-11-26 16:30
12107 Re:求教!!!关于排序问题 wujinlei 333 2004-12-05 20:31

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923