tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Farrow" <marc.far...@gmail.com>
Subject Re: sort an array
Date Tue, 27 Jun 2006 13:11:12 GMT
Search on Interface of Collections (specifically the comparable method).
This should allow you to write your own way to compare objects and thus the
Java engine will sort based upon your comparable method.

On 6/27/06, password password <bernadelpradoclaves@yahoo.es> wrote:
>
> Hi,
>
>     Arrays.sort(astrName);
>
>
>
> I can not use the sort method because I have the arrays have an relation.
> I mean, the first element of astrName have relation with first element of
> adblBackground1, adblBackground2, adblItensity1 and
> adblItensity2.
> Then I can sort each array independently, if I sort an element of astrName
> I have to sort the rest of arrays.
> Can you tell me a way to do this?
> Thanks.
>
>
>
>
> ---------------------------------
>
> LLama Gratis a cualquier PC del Mundo.
> Llamadas a fijos y móviles desde 1 céntimo por minuto.
> http://es.voice.yahoo.com
>



-- 
Marc Farrow
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message