Commit 2e15bad8 authored by Charlie Graham Carr's avatar Charlie Graham Carr

SpaceCookies is 'complete'

parent 1159c719
......@@ -32,7 +32,6 @@ public static void main(String[] args)
static private HashMap<String, String> variables = new HashMap<String, String>();
/** Process a single line of the input program.
* @param line Line to process.
*/
......@@ -45,14 +44,6 @@ private static void process(String line)
} else if (bits.length == 4 && bits[0].equals("what") && bits[1].equals("was") && bits[3].equals("again?")) {
System.out.println(variables.get(bits[2]));
}
public static void process(String line)
{
String[] bits = line.split(" ");
if (bits.length == 5 && bits[0]equals("that") && bits[2].equals("is") && bits[3].equals("now")){
variables.put(bits[1], bits[4]);
}
}
}
}
}
//SpaceCookies
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment