简体   繁体   中英

Show output of System.out.println

How do I show the output of System.out.println("Hello World!") ?

I can only get the output when using System.err.println("Hello World!") .

I'm running the java program from the command line.

You should see both traces (out and err).

Have you redirected the output when running the command (for example: "java MyClass > myLogFile.log")?

Are you using pipes (for example: "java MyClass | grep something")?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM