Dangling Else Problem
if ( total == Max)
if (total < sum)
System.out.println ( “ total equals Max but is less than sum”);
else
System.out.println (“total is not equal to Max”);
Previous slide
Next slide
Back to first slide
View graphic version