import java.util.ArrayList;
public class FriendList {
    private ArrayList<String> friendList;
    public FriendList() {
        ArrayList<String> friendList = new ArrayList<String>();
    }
    public void addFriend(String friend) {
        friendList.add(friend);
    }
    public String getFriends() {
        return friendList.toString();
    }
}
I've tried a few things but can't seem to manage to add strings to the array list. Any ideas why this might be?
 
     
     
     
     
    