I was using readLine of BufferedReader to get input/new password from user, but wanted to mask the password so I am trying to use java.io.Con
readLine
BufferedReader
java.io.Con
If your IDE uses javaw instead of java, then this issue is bound to happen as javaw is essentially java without console window.