Code example for TreeMap

Methods: containsKey

0
	public  void updateTheirKey(String theirId, String theirKey){	
		to_toKey.put(theirId, theirKey);
	} 
	 
	public  boolean isParticipant(String theirId){
		if (to_toKey.containsKey(theirId))
				return true;	 
		return false; 
	} 
 
 
} // ends class Conversation