| 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: 2896
|
|
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
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9189
|
|
|
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: 2896
|
|
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.
|
 |
 |
|
|
subject: The console class.
|
|
|