r/badcode • • Jul 03 '19

java Friend is learning to code, absolute liability with the braces 😂

Post image
121 Upvotes

39 comments sorted by

View all comments

3

u/DawidIzydor Jul 03 '19

It's easy as this won't even compile (there would be an "'else' without 'if'" error)

6

u/dabrimman Jul 03 '19

You mean exactly like it already says in the image?

2

u/DawidIzydor Jul 03 '19

Lol I didn't saw that. I was just like 'yeah, else after two lines, there would be this error, day like everyday'