Рет қаралды 15
This video lecture looks at Java if-statements that don't use braces to contain the block of code that belongs to the corresponding if-parts and the corresponding else-parts. Further, we examine if-else statements that are deliberately indented in poor fashion to throw off the reader, and evaluate by correctly pairing up the if's and the else's. Finally, we explore the ternary operator and switch statements, and evaluate the outcome of each.