Play Games

Search This Blog

Monday, August 22, 2016

How to make first letter of a word Capital in apex Salesforce

Use "capitalize() " to make first letter of a word as Capital.
Sample Code :
Run the below piece of code in Apex execute of Workbench
String str ='hello';
str= str.capitalize();
system.debug('Output String : '+str);
Output :


No comments:

Post a Comment