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
According to the docs:
If the virtual machine is started automatically, for example by a background job scheduler, then it will typically not have a console.