Timeline for Array of ArrayLists in java
Current License: CC BY-SA 3.0
14 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 9, 2016 at 6:37 | vote | accept | Sagit Khaliullin | ||
| Nov 8, 2016 at 23:03 | comment | added | Andreas |
So you're using the cyrillic alphabet, but only the first 25? АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШ
|
|
| Nov 8, 2016 at 23:03 | comment | added | Andreas |
Still not possible to get NullPointerException at the line with the add() call, since the if statement preceding it makes that impossible.
|
|
| Nov 8, 2016 at 22:52 | comment | added | Sagit Khaliullin | @Andreas I edited the example | |
| Nov 8, 2016 at 22:51 | history | edited | Sagit Khaliullin | CC BY-SA 3.0 |
added 150 characters in body
|
| Nov 8, 2016 at 22:43 | comment | added | Andreas | That's impossible with the code you showed. | |
| Nov 8, 2016 at 22:42 | comment | added | Sagit Khaliullin |
@Andreas the line leters[letter].add(word); gives an exception. Thanks for advice. ` if ` statement gives false and I don't know how to check it correctly.
|
|
| Nov 8, 2016 at 22:32 | review | Close votes | |||
| Nov 23, 2016 at 3:02 | |||||
| Nov 8, 2016 at 22:23 | comment | added | Andreas | Unable to reproduce: IDEONE. As you may also notice, letter Z is missing since you only have 25 letters. | |
| Nov 8, 2016 at 22:19 | comment | added | Andreas | Also, why 25? There are 26 letters in the base alphabet. Many languages have more than that. | |
| Nov 8, 2016 at 22:17 | answer | added | BlackHatSamurai | timeline score: 4 | |
| Nov 8, 2016 at 22:17 | comment | added | Andreas |
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.
|
|
| S Nov 8, 2016 at 22:15 | review | Triage | |||
| Nov 8, 2016 at 22:22 | |||||
| S Nov 8, 2016 at 22:15 | history | asked | Sagit Khaliullin | CC BY-SA 3.0 |