i fiddled with it a bit so i might have changed the index syntax a few times im also sposed to use substring but i cant understand how in this context
lastly when ive inevitably sussed this out the next practice is a tic tac toe game, i understand i have to create an array and display it on the consol just i dont know where to look to study in preparation for it, i have enough tutprials, its more about learning to use what you know...
1.in the for loop
second condition should be q<stringone.length()
2. in the replace statementstring1.replace(q,q++," ")
you are actually replacing the letter next to the vowel with " ".
so change the statementstring1.replace(q,q," "
1. Take a close look at this line (and maybe consider what's wrong with it) for (int q=0;stringone.length();q++)
2. string1.replace(q,q++," "); It's generally not a good idea to modify the loop control variable (in this case q) unless you want to change the normal execution of the loop. Rather than q++, consider (q + 1).