How can i use Arrays.sort on an object's attribute, e.g.
how can i do this:Quote:
public class Movie{
public Movie (String title, int duration)
{...}
}//end class Movie
Arrays.sort(Movie.duration, 20);
??
Movie.duration is invalid considering there is a 1 dimensional array Movie
EASY SOLUTION:
break the array Movie in 3 arrays each holding an attribute of a movie but i want to keep the search on the object Movie specific to 1 of its attributes
