This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Java in General and the fly likes printing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "printing " Watch "printing " New topic


javazaatri wahabjava

Joined: Jun 11, 2004
Posts: 1
what is the equivalent command in java to fprintln()in C.
Joe Ess

Joined: Oct 29, 2001
Posts: 9048

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");

[How To Ask Questions On JavaRanch]
rocket mass heater kickstarter
subject: printing