Skip to main content
Stack Overflow
  1. About
  2. For Teams

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Draft saved
Draft discarded
Cancel
8
  • 1
    Which line throws the exception? My guess would be the if statement because leters is null, and not the array. Please read this: How to create a Minimal, Complete, and Verifiable example. Commented Nov 8, 2016 at 22:17
  • 2
    Also, why 25? There are 26 letters in the base alphabet. Many languages have more than that. Commented Nov 8, 2016 at 22:19
  • 1
    Unable to reproduce: IDEONE. As you may also notice, letter Z is missing since you only have 25 letters. Commented Nov 8, 2016 at 22:23
  • 1
    That's impossible with the code you showed. Commented Nov 8, 2016 at 22:43
  • 1
    So you're using the cyrillic alphabet, but only the first 25? АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШ Commented Nov 8, 2016 at 23:03

lang-java

AltStyle によって変換されたページ (->オリジナル) /