Yeah that would serve the same function. Regardless, it wouldn't be using just nested if statements. It's okay. I'll figure it out. Thanks for the help!
Type: Posts; User: Potat
Yeah that would serve the same function. Regardless, it wouldn't be using just nested if statements. It's okay. I'll figure it out. Thanks for the help!
You're saying to do this:
for (int count = 0; count < stringLength; count++)
{
if...
Yes, that should work, but how would I go about doing that?
Yes, we can do that.
Yep this is exactly what the assignment is to do.
I think you're talking about the "compareToIgnoreCase" method, but I still don't know how to incorporate it into the nested If statements to get the number of vowels. If I was allowed to use chained...
I'm assuming we can use everything else, but my professor specifically said not to use compound conditions or chained if statements. Yes, we can use other Strings that hold reference data, this is...
Hey there, I need some advice on how to complete some code. The code needs to take an inputted string from the user, then print out the number of vowels in the string. The challenge here is that I'm...