BufferedReader之mark与reset初探
摘要:
先运行一下以下例子:Java代码importjava.io.BufferedReader;importjava.io.CharArrayReader;importjava.io.IOException;classBufferedReaderDemo{publicstaticvoidmain(String[]args)throwsIOException{Strings="test";charbuf[]=newchar[s.length()];s.getChars(0,s.length(),buf,0);System.out.println(buf);System.out.pr 阅读全文