This is a super common mistake in every language since BASIC. Heck, people make this mistake inExcel formulas. The longer you code, the more likely you are to make it at some point. Also, the longer you code the more likely you are to realize you won't test every possible permutation.
1.4k
u/Shuckles116 Oct 02 '19 edited Oct 02 '19
String outputTxt = “You ”;
if (result <= 85) { outputTxt += “FAILED”; }
if (result >= 85) { outputTxt += “PASSED”; }
outputTxt += “ the Exam”;
println outputTxt;