File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Classes for printing into console Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Classes for printing into console" Watch "Classes for printing into console" New topic
Author

Classes for printing into console

ioanis siafu
Greenhorn

Joined: Feb 06, 2008
Posts: 6
What classes other than System.out exist for printing into console?
Jelle Klap
Bartender

Joined: Mar 10, 2008
Posts: 1753
    
    7

As of Java 6 the most obvious candidate would be java.io.Console, which can be retrieved via java.lang.System.console().


Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
ioanis siafu
Greenhorn

Joined: Feb 06, 2008
Posts: 6
I read last week that System.out is not recommended for printing into console and that should be used for simple testing. Is there another class instead Console for printing into Console?
ioanis siafu
Greenhorn

Joined: Feb 06, 2008
Posts: 6
*console
ioanis siafu
Greenhorn

Joined: Feb 06, 2008
Posts: 6
The class was I was searching for is PrintWriter and here is an useful link.
PrintWriter example
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Classes for printing into console
 
Similar Threads
Adding objects to the list
Inheritance
Jboss Console not updating
insert multi language
problem in rediredtin GUI to IO Streams