V
16

My first attempt at a 'Hello World' program in Java failed for two hours because I had a semicolon in the wrong spot.

4 comments

Log in to join the discussion

Log In
4 Comments
brooket43
brooket431mo ago
Two hours for one semicolon, really?
7
henryt18
henryt182d ago
Ugh, that reminds me of the time I spent a whole afternoon on a missing comma in a config file. My eyes just refused to see it. What's the longest you've been stuck on a tiny mistake?
3
corah75
corah751mo ago
Yeah, those tiny syntax errors are brutal. I started using a linter in my editor that catches stray semicolons and missing brackets as I type. It saved me from so many of those hour long debug sessions over a single character.
3
knight.uma
knight.uma1mo ago
Was it a classic case of a semicolon after the class declaration or something weirder, like inside the print statement? Those tiny syntax errors are the worst.
2