Hello,
I cannot seem to find a past question on this topic so I took it upon myself to ask firsthand.
Here I have a string that I would like to read:
1234567890123456789012345678901234567890
For each time that the number 4
is displayed, I would like to add a 2
to the string
Could I get some help? ( I am newer to C# so if there is an easy way that I am missing to do this please inform me )
I would like my code to be somewhat formatted like this:
class findEach()
{
public void find(string? myString)
{
foreach (index in myString)
{
insert.atIndex("2");
}
}
}
Any help will be highly appreciated