I\'m trying t开发者_运维知识库o get command line input into a running java program that I started with ant. However, nothing of what I type in the terminal is redirected to System.in of the java proce
This question already has an answer here: How to use java.util.Scanner to correctly read user input from System.in and act on it?
This question already has an answer here: 开发者_如何学CHow to use java.util.Scanner to correctly read user input from System.in and act on it?
This question already has answers here: 开发者_运维知识库How to get SelectableChannel from an InputStream?