メッセージ curly brackets Number

oboe2uran.hatenablog.comメソッド名が良くないので書き直す。 public static String getMessage(String template, Object...obj) { Objects.requireNonNull(template); String s = template; Matcher m = Pattern.compile("\\{\\d+\\}").matcher(template); while(m.find()){ int n = Integer.parseInt(m.group().substri…