📜  使用 stringbuffer 输入 - Java 代码示例

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

代码示例1
StringBuffer sbuffer = new StringBuffer();
Scanner input = new Scanner(System.in);
System.out.println("Enter a string");
sbuffer.append(input.nextLine());