You need to sign in to do that
Don't have an account?

Equivalent String Function to charAt() ?
Hello,
I was wondering if there is any equivalent string function that can used similar to the charAt function which exists in java?
I know no such method is listed at http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_string.htm
I know it's possible to look through the string and to get each character using the substring function in such a loop but it would be much better if a function existed similar to charAt.
if anyone knows of a better way of doing this you can let me know.
Thanks!
You can use substring the same way you would charAt, it doesn't have to be in a loop. If you know exactly which character(s) you're trying to grab, substring just requires 2 inputs to get it, the start and end position. So...
charAt(4) is the same as substring(3,4)
All Answers
You can use substring the same way you would charAt, it doesn't have to be in a loop. If you know exactly which character(s) you're trying to grab, substring just requires 2 inputs to get it, the start and end position. So...
charAt(4) is the same as substring(3,4)
Join me on this musical journey as I provide comprehensive, step-by-step tutorials on Spotify's features, tips to enhance your music listening experience, and recommendations for playlists and artists tailored to your taste. Whether you're a new user or a long-time subscriber, there's always something to learn and discover.
Visit:https://howtousespotify.com/