Reputation: 823
I've spent the last three hours trying to write a "string" to the "console"?
System.in.writeToConsole("\"string\"");
Upvotes: 0
Views: 246
Reputation: 163
So you know about stdin, stdout, and stderr?
Then you have methods like print and println, print will write whatever you give it, println will write whatever you give it with a newline character at the end.
Hope this helps.
Upvotes: -1
Reputation: 105053
I would recommend to use some logging framework instead. Writing to console is a bad practice.
Upvotes: -2