Back to Browse

Omitting curly braces and the dangling else in Java

3.3K views
Oct 21, 2018
5:46

ERRATA: (1) Logic error in line 7. Line 7 should be x is greater than OR EQUAL to 0 since I'm printing out "x is 0 or greater" (2) 1:09 I should have said "num is greater than TEN" ========== In this Java tutorial, I show you an example of when it is ok to not use curly braces when creating if statements. I also show you what the dangling else problem means. Twitter: https://twitter.com/choobtorials

Download

0 formats

No download links available.

Omitting curly braces and the dangling else in Java | NatokHD