|
|
back to boardhow 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); |
|
|