ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1001. Reverse Root

Как читать до конца файла в Java?
Posted by WinAsAlways 16 Jul 2008 15:41
pls help me...
Re: Как читать до конца файла в Java?
Posted by Meni Packeou 14 Aug 2008 21:35
 Друг мой ты какой класс исползуеш. Eсли исползуюш tokeni
 ну тогда
                while (true)
        {
            in.nextToken();
            if (in.ttype ==StreamTokenizer.TT_EOF)
                break;
            a.add(in.nval);
        }