package cm; public class test20180421Console { public static void main(String[] args) { System.out.println(System.console());//Indicates that there is no available console. / / Run on the cmd command line to get the value of the corresponding console String s=System.console().readPassword().toString(); String rl=System.console().readLine();//Read the data input from the console by line. System.out.println(s); } }
Console
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=324615658&siteId=291194637
Ranking