[Java] String.format

private String GroupMessageAuto = "已完成自動同步動作,共計新增 %s 筆、刪除 %s 筆、同步 %s 筆”;
groupMsg = String.format(GroupMessageAuto, syncCount.getAdd(), syncCount.getDel(), syncCount.getSync());
This entry was posted in Java. Bookmark the permalink.