Package study.console

Source Code of study.console.TestPassword

package study.console;

import java.io.Console;

public class TestPassword {
   static char[] passwd;

  public static void main(String[] args){
    Console cons;
//    passwd = System.console().readPassword();
     if ((cons = System.console()) != null &&
         (passwd = cons.readPassword("[%s]", "Password:")) != null) {
        
     }
     System.out.println("The entered password is:");
     dclong.io.Console.print(passwd,"");
     System.out.println();
  }
}
TOP

Related Classes of study.console.TestPassword

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.