📜  控制台日志java代码示例

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

代码示例2
try(Scanner scan=new Scanner(System.in)){
    //read from console
    String textRead=scan.nextLine();
    //write to console
      System.out.println(textRead);
}