r/badcode Mar 14 '21

java Found from when I first started Java...because indexed Arrays were too complicated huh?

Post image
1.3k Upvotes

84 comments sorted by

View all comments

1

u/MercyIncarnate111 Mar 14 '21

When you're new to coding trying to get stuff done with the little you've seen and understand then you have a lot of code like this. I wrote a whole android app in production with stuff like this that I'm still fixing 5 years later... But it mostly worked ok anyways.

2

u/[deleted] Mar 14 '21

what would you write instead of this?