package javaphone;

import java.util.ArrayList;
import java.util.HashMap;

/**
 *
 * @author iGroup
 */
public class UserList extends ArrayList<HashMap> {
    private final DataFileIO userDataFile;
    
    public UserList() {
        userDataFile = new DataFileIO("users.xml", "users", "user");
        this.addAll(userDataFile.read());
    }

    public ArrayList getUserData(User user) {
        return null;
    }

    public boolean changeUserData(User user, HashMap userData) {
        return true;
    }

    public String sendUserPassword(int userId) {
        return null;
    }
}

@@ -349,25 +349,23 @@
  public 
-ArrayList
+HashMap
  getUser
@@ -373,29 +373,29 @@
 ata(
-User
+int
  user
+Id
 ) %7B
-%0A
         
 retu
@@ -394,101 +394,104 @@
     
-return null;
+ 
 %0A    
-%7D%0A%0A
     
-public boolean changeUserData(User user, HashMap userData) %7B%0A
+for(HashMap user : this) %7B%0A            if(user.containsValue(userId)) %7B%0A      
         
 retu
@@ -490,76 +490,46 @@
     
+  
 return 
-true
+user
 ;%0A    
-%7D%0A%0A    public String sendUserPassword(int userId) %7B
+        %7D%0A        %7D
 %0A   

Update UserList.java