wood burning stoves 2.0*
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
Author

printing

javazaatri wahabjava
Greenhorn

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

Joined: Oct 29, 2001
Posts: 8836
    
    7

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


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: printing