📜  用动态值替换字符串java代码示例

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

代码示例2
String a = "{YY}-{MM}-{SEQNO}";
a = a.replace("YY", "17").replace("MM", "06").replace("SEQNO", "0001");
System.out.println(a);
//Output:  {17}-{06}-{0001}