📅  最后修改于: 2022-03-11 14:52:14.214000             🧑  作者: Mango
StringBuffer sbuffer = new StringBuffer();
Scanner input = new Scanner(System.in);
System.out.println("Enter a string");
sbuffer.append(input.nextLine());