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