private ArrayList<SocialMediaAccount> socialMediaAccounts;
public void addSocialMediaAccount(String userID, String websiteName, String websiteURL, int activityLevel)
{
SocialMediaAccount object = new SocialMediaAccount(userID, websiteName, websiteURL, activityLevel);
socialMediaAccounts.add(object);
}
I have this ArrayList and I need to search for a particular websiteName and return the userID associated with the object.
Getting confused a lot and would like some help on getting started with this problem.
Thanks!