Adding one object to multiple ArrayLists
in
Programming Questions
•
2 years ago
So if i have an object:
- MyObject mythingy = new MyObject();
- arraylistOne.add(mythingy);
- arraylistTwo.add(mythingy);
- MyObject currentthingy = (MyObject) arraylistOne.get(54);
- currentthingy.x += 4;
1