I'm trying to make an arraylist but it is coming up with errors. The actors are already placed in the world but I want to sort them and change their attributes. What I've got so far:
What is it that I'm doing wrong here?
Thanks!
1 2 3 4 5 6 | List<Suspect> suspects = new ArrayList<Suspect>(); // works suspects.add(suspect1); // doesn't work suspects.add(suspect2); // doesn't work suspects.add(suspect3); // doesn't work suspects.add(suspect4); // doesn't work Collections.shuffle(suspects); // works |