So I have a string of chars which I want to cycle through in a for loop. When I reach a certain char that passes a boolean check, I want to take every item in the list after that point and cut off from there. Like below:
for (int i = 0; i < charList.length; i++)
{ if (charList[i] == "a")
{
//put every char in charList between i and the end into a new variable
}
}
What ways are there to do this? Which ones are recommended?