读取控制台输入的代码 Leave a Comment / Java / August 20, 2008 August 20, 2008 BufferedReader consoleInput = new BufferedReader( new InputStreamReader(System.in)); System.out.print("输入XX的ID:"); if(consoleInput.readLine().equals("")){ return; }else{ ...... }