Stackers. I\'ve been searching the site for my question, but didn\'t find what I was looking for. I\'m stuck with this code:
public class Users{
ArrayList<
If I understood right you're adding new users this way:
ValidateUser newUser = new ValidateUser();
newUser.setUser("administrator");
newUser.setPass("asdf123");
newUser.setBalance(0.8);
newUser.setType("admin");
personer.add(newUser);
newUser.setUser("different admin");
personer.add(newUser);
however this way the object points to the same reference, thus you must do the following to instantiate a new object:
newUser = new ValidateUser();
newUser.setUser("foo");
personer.add(newUser);