How can I get a character in a string by index? May 10, 2023 by Tarik string s = "hello"; char c = s[1]; // now c == 'e' See also Substring, to return more than one character.