I have an arraylist of classes. I need to randomly pick 2 classes from the arraylist, then call an attribute from them. How would I do this?
I can't just do
(array_list_name.get(random_number)).attribute_name();
as i'm not calling the attribute of the class, i'm attempting to call the attribute from get, and that obviously won't work.
P.S. I have already initialized all the classes.