How to mask a password in command line
<p>I want to mask a password. I used System.console() but it is not better and sometimes it returns null. Is there any other way to stop echo and mask a password? I am new to java. So please can anyone explain how to do this.</p>
