void () { Map<String, String> graph = new HashMap<>(); List<String> answer = new ArrayList<>(); for (int i = 0; i < 10000; ++i) { graph.put(String.valueOf((char)i), String.valueOf((char)(i + 1))); answer.add(String.valueOf((char)i)); } graph.put(String.valueOf((char)10000), String.valueOf((char)0)); answer.add(String.valueOf((char)10000)); doTest(graph, "0", ArrayUtilRt.toStringArray(answer)); }