aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes The console class. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "The console class." Watch "The console class." New topic
Author

The console class.

Manos Kolias
Greenhorn

Joined: Dec 08, 2009
Posts: 9
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

Joined: Feb 19, 2008
Posts: 2902
    
    1

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.


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9305
    
  17

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...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The console class.