File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 9189

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]
I agree. Here's the link:
subject: printing
It's not a secret anymore!