How to find the length of the String using Apex in Salesforce?

Sample Code:

String myStr = 'abcdef’;
Integer result = myStr.length();

Cheers!!!

No comments:

Post a Comment