|
|
back to boardJava 8: How to use both input and output? Sorry for my bad English. I use int ch; while ((ch = System.in.read()) != -1) { // my solution System.out.print(<some char>); } System.out.println(); But I get WA #1 with or without last code line. I also used System.out.flush (without last line), but it do not help me. Re: Java 8: How to use both input and output? Use Scanner from utils,that's better and esier , than use System.in.read() |
|
|