📅  最后修改于: 2022-03-11 14:57:10.385000             🧑  作者: Mango
String str = "..............................";
int index = 5;
char ch = '|';
StringBuilder string = new StringBuilder(str);
string.setCharAt(index, ch);
System.out.println(string);