Search:

Type: Posts; User: Potat

Search: Search took 0.09 seconds.

  1. Re: Using a Loop and Nested Ifs to Count Number of Vowels in a String

    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!
  2. Re: Using a Loop and Nested Ifs to Count Number of Vowels in a String

    You're saying to do this:

    for (int count = 0; count < stringLength; count++)
    {
    if...
  3. Re: Using a Loop and Nested Ifs to Count Number of Vowels in a String

    Yes, that should work, but how would I go about doing that?
  4. Re: Using a Loop and Nested Ifs to Count Number of Vowels in a String

    Yes, we can do that.
  5. Re: Using a Loop and Nested Ifs to Count Number of Vowels in a String

    Yep this is exactly what the assignment is to do.
  6. Re: Using a Loop and Nested Ifs to Count Number of Vowels in a String

    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...
  7. Re: Using a Loop and Nested Ifs to Count Number of Vowels in a String

    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...
  8. Using a Loop and Nested Ifs to Count Number of Vowels in a String

    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...
Results 1 to 8 of 8