Skip to content

Instantly share code, notes, and snippets.

@andrewsuzuki
Created May 1, 2015 03:39
Show Gist options
  • Save andrewsuzuki/c78b3b52477f0878236a to your computer and use it in GitHub Desktop.
Save andrewsuzuki/c78b3b52477f0878236a to your computer and use it in GitHub Desktop.
public Contact searchContact(String nickName)
{
for (int n = 0; n < _contactList.size(); n++)
{
Contact c = _contactList.get(n);
if (c != null && nickName.equals(c.getNickName()))
{
return _contactList.get(n);
}
}
return null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment