Fetching the first occurence of a capital character and its position.
Hi,
I have a requirement wherein I need to know the position of the first capital character in a string. Also I need to the character.
E..g, if the string is "weekEnd", I need to know the position of "E" in the string (In this case it is 5). Also I need to know the character (In this case it is E).
Let me know how to achieve this functionality.
Thanks,
Krishna