public String search(String name, String criteria)
	{
		String result = "";
		//loop over entire table from start
		for(int i = 0 ; i < hashTableSize -1 ; i ++)
		{
			//if current data is not null, and equals to search add to result and break out of loop
			if(hashtable[i]!= null)
			{
				if(criteria.equals("First Name"))
					if(hashtable[i].getFirstName().toUpperCase().equals(name.toUpperCase()))
					{
						result += hashtable[i] + "\n";
						break;
					}
				
				if(criteria.equals("Last Name"))
					if(hashtable[i].getLastName().toUpperCase().equals(name.toUpperCase()))
					{
						result += hashtable[i] + "\n";
						break;
					}
				
				if(criteria.equals("Number"))
				{
					if(hashtable[i].getPhone().toUpperCase().equals(name.toUpperCase()))
						result += hashtable[i] + "\n";
					break;
				}
			}
		}
		
		//return result
		return result;
	}