Code example for TreeSet

Methods: remove

0
		} 
		return(false); 
	} 
	 
	public void removePhonesNumbers(String phoneNumber) {
		this.phonesNumbers.remove(phoneNumber);
	} 
	 
	public void clearPhonesNumbers() { 
		this.phonesNumbers.clear();
	} 
	 
	public boolean addEmailAddress(String emailAddress) {
		if ( emailAddress.matches("^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$") ) {
			this.emailsAddresses.add(emailAddress);
			return(true); 
		} 
		return(false); 
	} 
	public void removeEmailAddress(String emailAddress) {
		this.emailsAddresses.remove(emailAddress);