JAVA:MessageFormat格式化文字输出

    xiaoxiao2021-04-17  31

    public static void main(String[] args) { String smsTemplate = "【中国】您{0},附言:{1}。"; String smsCont = MessageFormat.format(smsTemplate, "好", "美丽中国"); System.out.println(smsCont); } 【中国】您好,附言:美丽中国。
    转载请注明原文地址: https://ju.6miu.com/read-673655.html

    最新回复(0)