ArrayList to user defined class array

Viewed 527

I have a List<User> userList need to convert to UserData[]

for(int i = 0; i < userList.size(); i++){
    userData[i] = userList.get(i);
}

It always returns null though the list size is 1. can anyone help on this.

3 Answers
Related