import java.text.MessageFormat;
public class MessageFormatTest {
public static void main(String[] args) {
String formatString = "ID={0} Password={1}";
MessageFormat formatter = new MessageFormat(formatString);
String[] data = {"id", "cash"};
String str = formatter.format(data);
System.out.println(str);
}
}
댓글 없음:
댓글 쓰기