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...
Type: Posts; User: GregBrannon
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...
Ahhh, I see. I corrected this logic error in my implementation of the design. Hopefully, the OP's own testing would reveal this flaw.
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...
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...
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?
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...
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...