java - Should I use System.out.println() or something else? -


i've been casually programming in java while, still have few burning questions on fundamentals. i've heard should use system.out.println() display data people, , others have given me different ideas (like printstream or else). what's best way print console in java?

system.out is printstream.

if main goal interact console, @ java.io.console. if main goal have kind of logging, use logging framework java logging api or log4j.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -