I have an ArrayList, with objects in it, like:
private static List<Movies> movie= new ArrayList<Movies>();
And the contructor is: (where the "Type" is an enum)
public Movies(String name, int budget, int a, String director, Type action)
Now I know how to get the full first object, with:
Movies firstelement = movie.get(0);
But I would like to get somehow which movie had the most budget, and print it's director. How could I do that?