Console class was introduced in jdk 1.6. This class help in taking the input from the console using its readPassword method . Here in this sample program it will ask to feed the password. Note it will accept the password without showing it.
Posted on: April 10, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles