i return a custom variable using a getter and modifing it like this, the main variable gets modified too?
List<Gang> gangs = new ArrayList ...
public static List<Gang> getGangs() {
return gangs;
}
public static Gang getGang(String name) {
for (Gang gang : getGangs()) if (gang.getName().equals(name)) return gang;
return null;
}
Gang test = getGang("someGangWhichExistsAndItsNotNull");
test.setName("newName");


