This tutorial demonstrate how to read password without showing it on the console
This tutorial demonstrate how to read password without showing it on the consoleConsole 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.
import java.io.Console;
|