MessageFormat 格式化String

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

猜你喜欢

转载自www.cnblogs.com/tonggc1668/p/9057165.html