I need help regarding Compare roles[i].users to input_users, add matches to tempusersarray and
Set output_users [i] = tempusersarray
my function is below !!

private WSUser[][] getUsersInRole (WSRole[] roles, WSUser[] input_users) {
boolean found = true;

/// Initialize output_users: 2-dimensional array of WSUser; first dimension is same length as WSRole.
WSUser[][] output_users = null;
WSUser[][] temp;
/// Iterate through roles (using int i) and get array of WSUser for each
for(int r =0; r<roles.length; r++){
WSUser[] users = roles[r].getUsers();
for(int i=0; i<users.length; i++){
/// Compare roles[i].users to input_users, add matches to tempusersarray
if(roles[r].getUsers().equals(users[i].getName())){
if(found=true){
temp =users[r],roles[r];
}
}
}
}
// Set output_users [i] = tempusersarray
output_users =temp;
return output_users;
}