aspose 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 Java 8 in Action this week in the Java 8 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: 1667
    
    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
insert multi language
Inheritance
Adding objects to the list
Jboss Console not updating
problem in rediredtin GUI to IO Streams