74、Salesforce的String的format方法
来源:互联网 发布:微博个性域名是什么 编辑:程序博客网 时间:2024/05/20 13:08
String placehodler = 'Hello {0} , {1} is cool!';List<String> fillers = new String[]{'Jason','Apex'};String formatted = String.format(placehodler,fillers);System.assertEquals('Hello Jason , Apex is cool!',formatted);
结果如下所示
Anonymous execution was successful.38.0 APEX_CODE,DEBUG;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,INFO;WORKFLOW,INFOExecute Anonymous: String placehodler = 'Hello {0} , {1} is cool!';Execute Anonymous: List<String> fillers = new String[]{'Jason','Apex'};Execute Anonymous: String formatted = String.format(placehodler,fillers);Execute Anonymous: System.assertEquals('Hello Jason , Apex is cool!',formatted);13:50:33.21 (21991712)|USER_INFO|[EXTERNAL]|0056F00000652OT|weizhen.zhao@pactera.com|中国标准时间|GMT+08:0013:50:33.21 (22007848)|EXECUTION_STARTED13:50:33.21 (22013825)|CODE_UNIT_STARTED|[EXTERNAL]|execute_anonymous_apex13:50:33.22 (22913817)|CUMULATIVE_LIMIT_USAGE13:50:33.22 (22913817)|LIMIT_USAGE_FOR_NS|(default)| Number of SOQL queries: 0 out of 100 Number of query rows: 0 out of 50000 Number of SOSL queries: 0 out of 20 Number of DML statements: 0 out of 150 Number of DML rows: 0 out of 10000 Maximum CPU time: 0 out of 10000 Maximum heap size: 0 out of 6000000 Number of callouts: 0 out of 100 Number of Email Invocations: 0 out of 10 Number of future calls: 0 out of 50 Number of queueable jobs added to the queue: 0 out of 50 Number of Mobile Apex push calls: 0 out of 1013:50:33.22 (22913817)|CUMULATIVE_LIMIT_USAGE_END13:50:33.21 (22953824)|CODE_UNIT_FINISHED|execute_anonymous_apex13:50:33.21 (25331707)|EXECUTION_FINISHED
阅读全文
0 0
- 74、Salesforce的String的format方法
- String.Format()方法的使用
- String.format()方法的使用
- String类的format()方法
- String类的Format方法
- 记录对String.format(Formatter().format())方法的总结
- JScript实现的一个String.Format方法
- java中String的format方法
- JAVA中 String.format方法的使用
- String资源文件的format方法
- String.Format 方法的几种定义
- 71、salesforce的JSON方法
- C#:String.Format 方法 (String, Object)的用法
- Android中String资源文件的String.format方法(java)
- Android中String资源文件的String.format方法(java)
- string.format的使用
- String.format()的使用方法
- string.Format的用法
- 人工智能(三)上——通过搜索进行问题求解
- [LeetCode]根据树的遍历还原树(1)
- 72、salesforce call RESTful 的方式
- 73、salesforce通过JAVA来Call在salesforce中已经写好的Restful处理接口
- 《Spring 5 官方文档》14.DAO support
- 74、Salesforce的String的format方法
- 75、python学习第一篇
- 抽奖
- 76、python学习第二篇
- 关于JMeter的CSV Data Set Config的源码改写(包括了部分界面等代码的分析)
- 77、tensorflow手写识别基础版本
- 78、tensorflow滑动平均模型,用来更新迭代的衰减系数
- 79、tensorflow计算一个五层神经网络的正则化损失系数、防止网络过拟合、正则化的思想就是在损失函数中加入刻画模型复杂程度的指标
- Stanford-CS231n深度视觉识别作业笔记