读取控制台输入的代码

		

    BufferedReader consoleInput = new BufferedReader(
						new InputStreamReader(System.in));
			
    System.out.print("输入XX的ID:");
    if(consoleInput.readLine().equals("")){
       return;
    }else{
      ......
    }		

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.