I am trying to stick one string into the middle of another string, ex:
String One = "MonkeyPony";
String Two = "Monkey";
How would I put String Two into String One so it would read something like MonkeMonkeyyPony?
What I'm trying to do is insert "Monkey" into the middle of "MonkeyPony" numerous times, so on the first time it would read "MonkeMonkeyyPony", and on the second time it would read "MonkeMonMonkeykeyyPony", etc.
You don't need to use StringBuilder or any other complex method to do this. Here is the simplest way to achieve this. In this method I have just used the simple String methods.
You have to concat two substrings of the first string onto the ends of the second.
You can use
StringBuilder.insert(int offset, String str)
to achieve this.