除了String的replace方法和replaceAll
還有MessageFormat.
String str1 = "大秦 {0} {1} {2}";
System.out.println(MessageFormat.format(str1, "將軍", "夢迴", "秦朝"));
除了String的replace方法和replaceAll
還有MessageFormat.
String str1 = "大秦 {0} {1} {2}";
System.out.println(MessageFormat.format(str1, "將軍", "夢迴", "秦朝"));
1.代碼書寫規則: 關鍵字:必須小寫 標識符: 由26個英文字母大小寫,數字0~9,符號_ $組成 (符號一般用於公司統一規範名稱) 不能以數字開頭 不能使用關鍵
寫法一: Iterator<QcSampleDTO> it = qclist.iterator(); //排除尾箱容器