How can I make my string.charAt() look for multiple characters at once? I'm looking to reduce the lines of code I have in my program, just wondering how I can fit multiple characters into one line.
Example: normally I would type
(string.charAt(4));
if i wanted to find the character at spot 4, what if I wanted to find the character at spots 3-5? would i write
(string.charAt(3-5));
Thanks in advance!