Article View: cn.bbs.comp.lang.java
Article #19202Re: [���]
From: fool
Date: Thu, 08 Jan 2004 13:01
Date: Thu, 08 Jan 2004 13:01
27 lines
1714 bytes
1714 bytes
you can try this:
ArrayList al=new ArrayList();
al.add("��");
al.add("��");
al.add("��");
al.add("��");
al.add("��");
Collections.sort(al);
Iterator it=al.iterator();
while(it.hasNext())
System.out.println(it.next());
��ķ�����ȫ���а�
�� �� diamondfang.bbs@freecity.cnzju.net (����) �Ĵ������ᵽ: ��
: �и���̫����ķ����ǣ�
: ������Ĵ������arrayList��
: Object[] s = new Object[arrayList.size()];
: s = arrayList.toArray();
: Arrays.sort(s);
: arrayList.clear();
: for (int i = 0; i < s.length; i++)
: arrayList.add(s[i]);
: ��֪����λ�����и�õķ���?�Ǻ�
: �� �� nkicefire.bbs@bbs.nankai.edu.cn (@@) �Ĵ������ᵽ: ��
: .................������ʡ�ԣ�
--
[m[1;31m�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 202.120.53.34][m
Technical Details
Message-ID:
<4ABLda$ASJ@bbs.sjtu.edu.cn>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!167.206.3.103.MISMATCH!news3.optonline.net!news.bylinux.net!news.ccie.net.cn!SJTUShow Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB X-Google-Thread: f6cb0,f0d0b387fd1c8a2a X-Google-Attributes: gidf6cb0,public X-Google-ArrivalTime: 2004-01-08 05:04:27 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!167.206.3.103.MISMATCH!news3.optonline.net!news.bylinux.net!news.ccie.net.cn!SJTU From: tutufool.bbs@bbs.sjtu.edu.cn (fool) Newsgroups: cn.bbs.comp.lang.java Subject: Re: [���] Date: 08 Jan 2004 13:01:36 GMT Organization: ��ˮ˼Դ Message-ID: <4ABLda$ASJ@bbs.sjtu.edu.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: Java/M.1073566836.A Lines: 27