📜  如何在java代码示例中按回车继续

📅  最后修改于: 2022-03-11 14:52:15.165000             🧑  作者: Mango

代码示例1
System.out.println("Press enter to continue");
try{System.in.read();}
        catch(Exception e){}