Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:java 读文件应该怎么结束阿?In Reply To:java 读文件应该怎么结束阿? Posted by:newlala at 2004-10-31 21:50:39 > while ((s=in.readLine())!=null) > 可不可以? BufferedReader in = new BufferedReader (new InputStreamReader(System.in)); StreamTokenizer st = new StreamTokenizer (in); while (st.nextToken () != st.TT_EOF){ String first = st.sval; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator