Oops left out the most important part. I want to be able to sort so
that the array with the largest value in [2] would be in the other
array as [0]
for example something like this
String[] level2;
level2[0] = new Array[]{"AA","0.22","0.23","50","50","12:22:30"};
level2[1] = new Array[]{"BB","0","0.13","0","50","11:11:30"};
System.out.println(level2[0][0]);
where it owuld print out AA
Im having a severe memory block plz help me thanks :)
Hendrik Maryns - 23 Mar 2006 17:38 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message
morc schreef:
> for example something like this
>
[quoted text clipped - 5 lines]
> where it owuld print out AA
> Im having a severe memory block plz help me thanks :)
Array is a class from java.lang.reflection. You don't need it. The
syntax to make an array is as in you first line. If you want it to be
multidimensional, just add brackets.
String[][] stringArray;
stringArray[0] = new String[]{"AA","0.22","0.23","50","50","12:22:30"};
stringArray[1] = new String[]{"BB","0","0.13","0","50","11:11:30"};
System.out.println(stringArray[0][0]);
// will print AA
For sorting, see Arrays.sort()
H.

Signature
Hendrik Maryns
==================
www.lieverleven.be
http://aouw.org
for example something like this
String[] level2;
level2[0] = new Array[]{"AA","0.22","0.23","50","50","12:22:30"};
level2[1] = new Array[]{"BB","0","0.13","0","50","11:11:30"};
System.out.println(level2[0][0]);
where it owuld print out AA
Im having a severe memory block plz help me thanks :)