2223242526272829
public Console() { commands = new HashMap<String, Command>(); // Default commands addCommand("exit", new ExitCommand()); addCommand("print", new PrintCommand()); addCommand("phys", new PhysicsCommand()); }