Salesforce Fact #268 | Iterate over string in apex

Apex does not support char data type. So, suppose we have to iterate over the characters over a string. We can use substring() method to get the characters at each index.

Attached are the screenshots.




Comments

Post a Comment

Popular posts from this blog

Salesforce Fact #218 | Blank picklist value is actually NULL

Salesforce Fact #929 | Nth highest in screen flow

Salesforce Fact #989 | New delete files permission