out.println("t         - List all threads"); out.println("r         - List all running threads"); out.println("w         - List all waiting threads"); out.println("n         - Next thread in list"); out.println("Alt-SysRq - Quit debugger");
final TreeMap map = new TreeMap(); map.put(".", "Print state trace"); map.put("p", "Print current state"); map.put("h", "Print usage information"); state.fillHelp(map); for (Iterator i = map.entrySet().iterator(); i.hasNext();) { Map.Entry entry = (Map.Entry) i.next(); out.println(entry.getKey() + " - " + entry.getValue()); } out.println();
    private void help(PrintStream out) {        out.println("Usage:");        out.println("t         - List all threads");        out.println("r         - List all running threads");        out.println("w         - List all waiting threads");        out.println("n         - Next thread in list");        out.println("Alt-SysRq - Quit debugger");    }