(String[] args)
| 31 | } |
| 32 | |
| 33 | public static void main(String[] args) throws IOException { |
| 34 | final byte[] buf = new byte[System.in.available()]; |
| 35 | System.in.read(buf); |
| 36 | |
| 37 | for (int i = 0; i < buf.length;) { |
| 38 | while (buf[i++] != '\n'); |
| 39 | int data = i; |
| 40 | while (i < buf.length && buf[i++] != '>'); |
| 41 | reverse(buf, data, i-2); |
| 42 | } |
| 43 | |
| 44 | System.out.write(buf); |
| 45 | } |
| 46 | } |