I am having problems with an assignment where I have to remove a substring from a
string. I know I have to make a loop to go through the String, use substring() to remove the substring, indexOf() to find the index to end and resume the String, and an if / else statement to tell whether or not to remove the substring. The problem I am having having my String produce output in the console. When I run my program I can't get the text to show up.
Edit: Found the solution to my problem. Here is my final code:
All advice and guidance appreciated. Thanks.