please help!
I have a class like this:
public class Person {
private int age
}
Assume that i have an ArrayList of Person type and i want to take out 15 Persons with max age sort by descending order of age. I can sort the list and then take out the value but if the List has about a thousand objects inside, it take too much time. Which way i can do this faster?
Thank you. Sorry about my english!