public boolean userNameInList(User user, ArrayList<String> friendNamesList) {
		String curName = user.getName();
		for (String friendName : friendNamesList) {
			if (curName.equals(friendName)) {
				return true;
			}
		}
		return false;
	}