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

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

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

unit testing - How to mock PreferenceManager in Android? -