i have to do a QuickSort to create an Array of “Stones”my question is: i wanna make the QuickSort only over the “ValueySize” field witch is the result of “Value / Size” is there any way to get a sorted array of stones by valueYSize?
Thanks in advance 😉
public class Stone implements Comparable{
private float[] value;
private float[] size;
private float[] valueYSize;
}
You can use the sort method from the Arrays class: