public static void main(String[] args) throws IOException {
FileReader fr = new FileReader("c:/b.txt");
BufferedReader br = new BufferedReader(fr);
String ss = br.readLine();
StringBuffer sb =new StringBuffer(ss);
System.out.println (sb.reverse());
}
如果 使用遍历? 用LinkedList 实现?