Ad
  • Custom User Avatar

    Very nice solution! Instead of checking for what letters the sentence does contain, you checked for the first occurence where the sentence does not contain one of the 26 letters (looping over 26 letters as opposed to the sentence).

  • Custom User Avatar

    I was thinking that as well! String.contains() method takes CharSequence as an input, so having only a single character c will throw you an error.