DEV Community

Discussion on: The `else if` Keyword Doesn’t Exist in Java

Collapse
 
renegadecoder94 profile image
Jeremy Grifski

I don’t think I ever said it was a problem. I was acknowledging the fact that the Java grammar doesn’t contain an else if terminal symbol. Of course, the content was geared toward beginners (i.e. my students), so I chose not to dig into compilers. Instead, I shared an example they could easily understand.

Naturally, the example is purely for the sake of argument—not something you should put in production code. Of course, you’re welcome to lecture me on which tools I should be using.