• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The console class.

 
Manos Kolias
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to execute the small programm writen in Kathy's Sierra book (page 458) about Console class , with eclipse?
Please don't answer just a yes or no.
I didn't really understand the console class.When we should have used Console class in real life?
Thanks Manos.
 
Sagar Rohankar
Ranch Hand
Posts: 2906
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Manos Kolias wrote:Is it possible to execute the small programm writen in Kathy's Sierra book (page 458) about Console class , with eclipse?
Please don't answer just a yes or no.

Sorry, but Yes. What are you trying to ask ? Eclipse is famous Java IDE and you can create any Java project in it. Google for more.
Manos Kolias wrote:I didn't really understand the console class.When we should have used Console class in real life?

Read the JavaDocs, java.io.Console If you face any problem there, ask here.
 
Ankit Garg
Sheriff
Posts: 9509
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I know, Eclipse and Netbeans don't support the java.io.Console class right now, so you'll have to run your program from the command line...
 
Sagar Rohankar
Ranch Hand
Posts: 2906
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hmm, interesting.. I don't knew that: Little googling cleared my doubt:
http://www.eclipsezone.com/eclipse/forums/t93685.rhtml
http://www.stupidjavatricks.com/?p=43
http://stackoverflow.com/questions/104254/java-io-console-support-in-eclipse-ide

And Console will be only used where you're doing some background processing using Java which required NO or minimal user interface. For that, to take that minimal user input, Console can be used.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic