I know we can use the charAt() method in Java get an individual character in a string by specifying its position. Is there an equivalent method in C#?
I know we can use the charAt() method in Java get an individual character
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can index into a string in C# like an array, and you get the character at that index.
Example:
In Java, you would say
In C#, you would say