(String[] args)
| 103 | } |
| 104 | |
| 105 | public static void main(String[] args) throws IOException { |
| 106 | BufferedReader br = |
| 107 | new BufferedReader(new InputStreamReader(System.in)); |
| 108 | |
| 109 | int t = Integer.parseInt(br.readLine()); |
| 110 | |
| 111 | while (t > 0) { |
| 112 | String s = br.readLine(); |
| 113 | Node root = buildTree(s); |
| 114 | Solution g = new Solution(); |
| 115 | ArrayList<Integer> res = g.inOrder(root); |
| 116 | for (int i = 0; i < res.size(); i++) |
| 117 | System.out.print(res.get(i) + " "); |
| 118 | System.out.print("\n"); |
| 119 | t--; |
| 120 | } |
| 121 | } |
| 122 | } |