G
Guest
Hi I have an arraylist that contains integer values. What i want to ask you all is how i would retrieve the index values when the values have been sorted. For example..
lets assume the index values are in brackets and the values contained in it is shown immeditaly preceding it.
Arraylist1
(0)4 , (1)2, (2)1, (3)2, (4)0, (5)
i want the arraylist to now be sorted according to the values contained in it (smallest integer first). However i want the index values maintained. i.
(4)0, (2)1, (1)2, (3)2, (5)3, (0)
I then want the Index values retrieved in the order above
i.e i want this order of index's retrieved.
(4), (2), (1), (3), (5), (0
Can anyone tell me if this is possible?
ANy help would really be appreciated
thankU
lets assume the index values are in brackets and the values contained in it is shown immeditaly preceding it.
Arraylist1
(0)4 , (1)2, (2)1, (3)2, (4)0, (5)
i want the arraylist to now be sorted according to the values contained in it (smallest integer first). However i want the index values maintained. i.
(4)0, (2)1, (1)2, (3)2, (5)3, (0)
I then want the Index values retrieved in the order above
i.e i want this order of index's retrieved.
(4), (2), (1), (3), (5), (0
Can anyone tell me if this is possible?
ANy help would really be appreciated
thankU