Article View: borland.public.jbuilder.java.language
Article #14903Re: array
From: Lois Neo
Date: Wed, 28 Jul 1999 00:00
Date: Wed, 28 Jul 1999 00:00
18 lines
1207 bytes
1207 bytes
If I understand your question correctly, you are saying that you have an array of String objects (String[]) and you want it to be in sorted order? If that's the case, you can use java.util.Arrays.sort(yourStringArray) to sort it in alphabetical order, ascending by default. If you need certain variations, refer to java doc on java.util.Arrays for more sorting methods. -- Thanks for any help given Lois marc-hugo petitclerc <mhp@sympatico.ca> wrote in message news:379DDAE6.7D7D6F7D@sympatico.ca... > > is it possible to retreive alphabetically String objects stored in an > array like the SQL "order by" clause can do. > > >
Technical Details
Message-ID:
<7nkvhv$5i410@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<379DDAE6.7D7D6F7D@sympatico.ca>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,6736d0dfa81061e3 X-Google-Attributes: gidf74b3,public From: "Lois Neo" <slneo@cybergal.com> Subject: Re: array Date: 1999/07/28 Message-ID: <7nkvhv$5i410@forums.borland.com> X-Deja-AN: 505883590 References: <379DDAE6.7D7D6F7D@sympatico.ca> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Reply-To: "Lois Neo" <slneo@cybergal.com> Newsgroups: borland.public.jbuilder.java.language