Skip to content

Instantly share code, notes, and snippets.

@andrewsuzuki
Created May 1, 2015 03:41
Show Gist options
  • Save andrewsuzuki/b5428635c7bf7f561c51 to your computer and use it in GitHub Desktop.
Save andrewsuzuki/b5428635c7bf7f561c51 to your computer and use it in GitHub Desktop.
public Contact searchContact(String nick)
{
for (Contact contact : _contactList)
{
String testnick = contact.getNickName();
if (testnick != null && testnick.equals(nick))
{
return contact;
}
}
return null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment