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

how to get user input with out compiling the Java...PLZ urgent
Posted by Farruh 25 Oct 2014 17:12
I can get user input ...coz when i wanna make the line breaks...Java compiler Intillej starts to get compiled plz i need help
Re: how to get user input with out compiling the Java...PLZ urgent
Posted by aizperm 28 Oct 2014 08:34
to get input use this code
*********************************
char[] bytes = new char[256 * 1024];

        BufferedInputStream bufferedInputStream = new BufferedInputStream(System.in);
        InputStreamReader inputStreamReader = new InputStreamReader(bufferedInputStream);
        inputStreamReader.read(bytes);

        String string = new String(bytes);