hello. i am in a need of an idea on how to do this sort of a method...
i have here an
int [] with 10 as length...
so its like...
this values are to be put on a separate set of int variables
i wanted to come up when i sorted it to this output...
v10 = 1
v1=2
v2=3
v8=3
v5=4
v7=5
v3=7
v6=7
v4=9
v9=9
i want if i sort out the values of the values[], it will be sorted but the variable they are originally assigned on will follow the sequence of the sorted values...
any ideas to do this?
i am lacking out of ideas that's why i asked help here.
hoping somebody could lend me a hand.
thanks in advance.