permaculture playing cards*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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: 8935
    
    9

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]
 
Consider Paul's rocket mass heater.
 
subject: printing