📅  最后修改于: 2022-03-11 14:52:19.361000             🧑  作者: Mango
String a = "{YY}-{MM}-{SEQNO}";
a = a.replace("YY", "17").replace("MM", "06").replace("SEQNO", "0001");
System.out.println(a);
//Output: {17}-{06}-{0001}