Top "System.in" questions

Predefined stream object attached to the standard input in Java console applications.

Reading in from System.in - Java

I am not sure how you are supposed to read in from system input from a Java file. I want …

java input system.in
Eclipse reading stdin (System.in) from a file

Is it possible for Eclipse to read stdin from a file?

java eclipse file stdin system.in
Writing data to System.in

In our application, we expect user input within a Thread as follows : BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); …

java junit io system.in
How to use java.util.Scanner to correctly read user input from System.in and act on it?

This is meant to be a canonical question/answer that can be used as a duplicate target. These requirements are …

java java.util.scanner system.in
An alternative to reading input from Java's System.in

I’m working on the UVa Online Judge problem set archive as a way to practice Java, and as a …

java input standards system.in
How to clear/reset/open an input stream so it can be used in 2 different methods in Java?

Here's the code: package testpack; import java.io.*; public class InputStreamReadDemo { private void readByte() throws IOException { System.out.print("Enter …

java inputstream iostream bufferedreader system.in
How can I fix an "IOException: Stream closed" exception using System.in?

I'm writing a simple program that reads and processes file content using a BufferedReader. BufferedReader br = new BufferedReader( new InputStreamReader(…

java ioexception system.in