The great white space debate in Java

July 22, 2014

Should there be extra white space around the terms in a for loop? The article is a fun read, but this shouldn’t even be a question: of course. What looks better, this:

for (int i=0; i<LENGTH; i++)

Or this?

for (int i = 0; i < LENGTH; i++)

Obviously, the second one looks better.