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.
import java.io.*;
|

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.