Skip to content

Intermediate - Fix example code array boundaries - #3

Open
paukenba wants to merge 1 commit into
kon3ktor:masterfrom
paukenba:master
Open

Intermediate - Fix example code array boundaries#3
paukenba wants to merge 1 commit into
kon3ktor:masterfrom
paukenba:master

Conversation

@paukenba

Copy link
Copy Markdown

Thanks for the great course!
In this example there are 4 buildings in the array, but in the original code the randomBuildingIndex can get the value of 4 which can lead to ArrayIndexOutOfBoundsException

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant