I have a code problem... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I have a code problem...

Every time I run my programme I get a compilation error how can I fix this? What about now? I fixed most of them but it has still an exception... https://code.sololearn.com/c3SW5DMSm39a/#java

26th May 2019, 11:50 PM
Giorgos
Giorgos - avatar
2 Answers
+ 1
That code is too large and it's hard to find errors if sololearn just says compilation error. Maybe it's too large for sololearn or there are too much bugs. Try rewriting it in a more efficient way or compiling it from a computer.
27th May 2019, 12:02 AM
Andres0b0100
Andres0b0100 - avatar
+ 1
Well, it says ArrayIndexOutOfBoundsException, so you're probably using an array index that's out of bounds (like array[4] in an array with four elements)
27th May 2019, 5:05 AM
Anna
Anna - avatar