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
Post a Comment