In Java, how can you make an ArrayList read-only (so that no one can add elements, edit, or delete elements) after initialization?
ArrayList
Are you sure you want to use an ArrayList in this case?
Maybe it would be better to first populate an ArrayList with all of your information, and then convert the ArrayList into a final array when the Java program initializes.