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 example this sample program it will ask to feed the password. Note when feeding the password it won't echo password but it accept and display later.
Posted on: April 10, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles