📅  最后修改于: 2022-03-11 14:52:25.094000             🧑  作者: Mango
代码示例1
try(Scanner scan=new Scanner(System.in)){
//read from console
String textRead=scan.nextLine();
//write to console
System.out.println(textRead);
}