|
Reading Text from Standard Input |
|
|
Reading text from standard input can be done as follows:
try {
BufferedReader in = new BufferedReader(
new InputStreamReader(System.in));
String str = "";
while (str != null) {
System.out.print("$bash> ");
str = in.readLine();
process(str);
}
} catch (IOException e) {
}
|
Related Tips
|
Page 1 of 0 ( 0 comments )
You can share your information about this topic using the form below!
Please do not post your questions with this form! Thanks.