Code example for Vector

Methods: addAll, clear, size

0
	 * Populate the list with messages by querying the server. 
	 *  
	 * Also sets the local status string. 
	 */ 
	public void Populate() { 
		messages.clear();
		populated = exceptioned = false;
		try { 
			Vector<MailMessage> msglist = EnumerateMessages();
			if (msglist != null) {
				messages.addAll(EnumerateMessages());
				populated = true;
				status = String.format("%d unmoderated messages", messages.size());
			} 
			else { 
				// Status is assumed to be set by by the routine that failed 
				populated = false;
				exceptioned = true;
			} 
		} 
		catch (RuntimeException e) {