This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Console class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Console class" Watch "Console class" New topic

Console class

Ashish K. Singh

Joined: Jan 31, 2009
Posts: 5

I am getting the following error : cannot find symbol
symbol : class Console
location: class ConsoleTest
Console conc = System.console();
1 error

Do i have to include any package to use this class Console ? Thanks
Ashish K. Singh

Joined: Jan 31, 2009
Posts: 5
Okies, that was my bad. I got it now. I need to import and also use char[] for taking the passwd. And also it is foolish of me to print out the passwd. Thanks
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Console class
It's not a secret anymore!