r/learnjava • • Oct 27 '26

Something happened in which I cannot explain

I was working on a mooc fi exercise as per usual and it was taking time because i’m a dumbass.
For reference its the last ex of java programming I in part 2

Now after alot of useless lines of code and trying to make it make sense it eventually worked.???

Now I’m happy and i feel like a senior software engineer but I actually have no idea (not literally but in specific place) how it worked.

My question is.. does this count as something that’s solved with critical thinking or am I just a fool with some luck?

TripleT out.

0 Upvotes

4 comments sorted by

View all comments

1

u/LakeSun Oct 27 '26

Rewrite it, refactor it, until you understand it.

Also, line by line debugging.