Search:

Type: Posts; User: GregBrannon

Search: Search took 0.15 seconds.

  1. Re: Pangram Question (All the letters of the alphabet in a sentence)

    Explore the break; statement.

    Remember that you need 26 yay votes to be a pangram but only one nay to know that the user's sentence is not a pangram. You can cease checking as soon as a nay is...
  2. Re: Pangram Question (All the letters of the alphabet in a sentence)

    Ahhh, I see. I corrected this logic error in my implementation of the design. Hopefully, the OP's own testing would reveal this flaw.
  3. Re: Pangram Question (All the letters of the alphabet in a sentence)

    Without giving away the answer, the problem you've highlighted will be addressed by my suggestion to change "the boundary of the for loop." Almost giving the answer away, the OP misunderstands which...
  4. Re: Pangram Question (All the letters of the alphabet in a sentence)

    Okay. I was able to spend more time with the code you've posted, and it will work. There are two minor changes to make: the contents of the String 'alphabet' and the boundary of the for loop that...
  5. Re: Pangram Question (All the letters of the alphabet in a sentence)

    I'm not sure this approach will ultimately prevail, but I'll play along a bit longer. What are the commas in the String alphabet? Are they necessary? Are they helping? Hurting?
  6. Re: Pangram Question (All the letters of the alphabet in a sentence)

    Did you review the String API page? Did you happen to notice the charAt() method? After following PhHein's suggestion, it might occur to you that a char value can be translated to the index of a...
  7. Re: Pangram Question (All the letters of the alphabet in a sentence)

    Use an array of 26 elements to count the frequency of the characters found in the sentence using PhHein's suggestion of considering the characters as char(s) which are numbers. String methods will...
Results 1 to 7 of 7