title: how to hide console input in eclipse in java using console input from user
body: <pre><code>System.out.println("please enter id ");
  Console console = System.console();
  char[] password = console.readPassword("Enter password");  
  Arrays.fill(password, ' ');
  </code></pre>
  
  <p>I am getting  <code>java.lang.NullPointerException</code> , I don't know how to get rid of this exception. </p>