Java is object-oriented, rather than procedural, like C. Output is handled by streams (Java Tutorial) and formatting that output is either the responsability of the object being written via a toString() method or by helper objects like java.text.DateFormat. If you just want to write a line to the console, you can accomplish that by calling System.out.println("whatever");