📅  最后修改于: 2022-03-11 14:52:26.598000             🧑  作者: Mango
int i,j;
StringBuffer str=new StringBuffer();
Scanner in = new Scanner(System.in);
System.out.print("Enter string: ");
str.append(in.nextLine());
for (i=0;i