Search:

Type: Posts; User: Junky

Search: Search took 0.11 seconds.

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

    Obviously it has revealed the flaw since they mentioned being confused by the results they are getting. A better solution would be to use a method that returns a boolean: false as soon as it finds a...
  2. Re: Pangram Question (All the letters of the alphabet in a sentence)

    if (sentence.length()<26)

    That if statement will handle empty Strings ie if user hits return without entering anything. Thus the check for an empty String is redundant.

    To explain my point...
  3. Re: Pangram Question (All the letters of the alphabet in a sentence)

    I think it is a bad design. One problem I can see is that a StringIndexOutOfBoundsException will occur if the sentence is longer than alphabet. If the issue mentioned above is fixed then it will...
Results 1 to 3 of 3