When does System.out not appear in the Java console?

前端 未结 5 1884
野的像风
野的像风 2021-01-24 16:47

I understood that anything to standard out (System.out) would appear in the Java Console window (when it\'s enabled). I spotted somewhere though that there might be

5条回答
  •  再見小時候
    2021-01-24 17:04

    Depending on terminal settings it can happen that the output is not written until a newline character is sent as well. So if you do System.out.print("test") it might not appear immediately. On Windows this is usually not the case, but on Unix terminals this is quite common.

提交回复
热议问题