利用MessageFormat格式化字符串實例

第一個例子使用靜態的方法 MessageFormat.format ,它在內部建立一個只使用一次的 MessageFormat : java int planet = 7; String event = "a disturbance in the Force"; String result = MessageFormat.format( "At {1,time} on {1,da
相關文章
相關標籤/搜索