[Solved] Adding objects to ArrayList [duplicate]
If I understand the problem correctly, you have 6 Publication objects, and you are only seeing the values of the most recently created one. That would likely be caused because you have static class variables instead of instance variables. For example class A { static int x; // class variable int y; // instance variable … Read more