removeMessage(currMsg);
	Message[] getMessagesByReceiver(String receiver, User user) {		if (receiver == null)			return new Message[0];		Vector messages = new Vector(10);		Message currMsg = firstMessage;		while (currMsg != null) {			if (iequals(currMsg.target, receiver) || (user != null && iequals(user.userName, currMsg.target))) {				messages.add(currMsg);				removeMessage(currMsg);			}			currMsg = currMsg.next;		}		return (Message[])messages.toArray(new Message[messages.size()]);	}