3 ms·
On the contrary! We force all our blocks to consist of a single statement so that we can always omit the damn parens.
by enriquto 9y ago
On the contrary! We force all our blocks to consist of a single statement so that we can always omit the damn parens.
- kqr 9y agoAre you saying you need statements in your loop blocks!? I just added this to a school assignment: for (String next = in.readLine(); next != null && dictionary.add(next); next = in.readLine()); ...you can sense my contempt for this assignment. I would of course never do this in a real program.