protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_hello_test);
Scanner pause = new Scanner(System.in);
System.out.println("press enter to leave");
pause.hasNextLine(); //不会停住
System.out.println("test");
Log.e("test", "test2");
}
Android新手,想请问为什么不会停住呢?