MessageFormat 格式化String

public static String buildFailureString(AtomicInteger count, String cause) {
return MessageFormat.format("Failure count: {0}, failure cause: {1}\n", count.getAndSet(0), cause);
}

posted @ 2018-05-18 17:32  tonggc1668  阅读(107)  评论(0编辑  收藏  举报