Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:java 读文件应该怎么结束阿?

Posted by deliver at 2004-11-01 08:57:46 on Problem 1965
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator