All pastes #488990 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-05-15 09:03 UTC
rendered paste body
import java.util.HashMap;
/**
 * Write a description of class MapTester here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class MapTester
{
	// instance variables - replace the example below with your own
	private HashMap testMap<String, String>;

	/**
	 * Constructor for objects of class MapTester
	 */
	public MapTester()
	{
		// initialise instance variables
		testMap = new HashMap<String, String>();
		fillHashMap();
	}

	/**
	 * An example of a method - replace this comment with your own
	 * 
	 * @param  y   a sample parameter for a method
	 * @return     the sum of x and y 
	 */
	public void fillHashMap()
	{
		// put your code here
		testMap.put("Leon", "(09) 999 9999");
		testMap.put("Fraser", "(09) 999 9999");
		testMap.put("Lance", "(09) 999 9999");
	}
}