Format a message using MessageFormat.format() in Java

前端 未结 6 502
没有蜡笔的小新
没有蜡笔的小新 2020-12-04 18:58

I have stored some messages in a resource bundle. I\'m trying to format these messages as follows.

import java.text.MessageFormat;

String text = MessageForm         


        
6条回答
  •  执笔经年
    2020-12-04 19:13

    For everyone that has Android problems in the string.xml, use \'\' instead of single quote.

提交回复
热议问题