Java put different objects in the same arrayList
I have a Airport class where I built the airport object. Now, I am trying to put different objects in the same array but without changing the object name every single time. The problem is that my program will only get the last object instead of getting all of them. ”’ public class Main {… Read More Java put different objects in the same arrayList