Code example for SortedMap

Methods: put

0
	private static SortedMap<Integer, String> output = new TreeMap<Integer, String>();
	final static String input = "/Users/pgmnle/dev/google_code_jam_2011/input_B.txt";
	//final static String input = ""; 
	 
	public static void setOutPut(int seq, String out){
		output.put(seq+1, out);
	} 
	public static void main(String arg[]) throws Exception{
		 
		//read input files 
		prob = IoUtil.readInputFile(input);
		int i = 0;
		//TODO solve problem. 
		for(String s:prob){
			Thread t = new Thread(new SolveB(s,i));
			t.start();
			i ++;
		} 
		 
		while(output.size() != prob.size()){
			Thread.sleep(500);