• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Classes for printing into console

 
ioanis siafu
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What classes other than System.out exist for printing into console?
 
Jelle Klap
Bartender
Posts: 1951
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As of Java 6 the most obvious candidate would be java.io.Console, which can be retrieved via java.lang.System.console().
 
ioanis siafu
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
*console
 
ioanis siafu
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The class was I was searching for is PrintWriter and here is an useful link.
PrintWriter example
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic