You need to sign in to do that
Don't have an account?
grandmaster
How to read a string
Hi
Say I have a string, as below:
String str = "Great";
Now I want to find out what is the character at the first position, second position and so on... How do I do that?
I basically need to find out what is the character at the second position of the word "Great", which is "r".
This might be simple but cant seem to get it work. In other languages it is easy but in Apex, I wasnt able to find out the trick.
It would be great if someone can help with some code sample.
Thanks
M
Not great, but this should do it
All Answers
Not great, but this should do it