Java Programming: Conditional Evaluation
Java
| Intermediate
- 12 videos | 1h 30m 37s
- Includes Assessment
- Earns a Badge
This 12-video course addresses the conditional control structures available in Java by examining the three types of control structures in Java: if/else/else if, ternary operator, and switch. In this course, participants will examine how to use loops to iterate through multiple values/objects and repeatedly run specific code blocks. First, you will learn simple if constructs, which evaluate a condition to determine the flow of program control. You will then study how if-else statements provide a ladder to complex nested conditions and how an if-else statement can lead to bugs. Next, learn what makes the switch construct an easy way to dispatch execution to different parts of code based on the value by byte, short, char, and int primitive data types. Learn how to use a switch station for branching program control based on different values of a single variable, and how to pick a switch statement to avoid bugs. Finally, participants will learn to identify situations in which multiple variables need to be taken into consideration, and how to deploy nested if-else control structures.
WHAT YOU WILL LEARN
-
Discover the key concepts covered in this courseModify control flow in a program using the if constructUse the else clause to provide an alternate code path to control program flowDemonstrate additional applications of using the else clause to provide an alternate code path to control program flowUse nested if-else conditions to deal with mutually exclusive conditionsUse nested if-else clauses to deal with more complex combinations of user input
-
Use strings in if-else constructs, relying on the .equals method and avoiding the == operatorUse the switch construct rather than nested if-else statements to control program flowUse the default keyword to deal with unexpected values in switch evaluationUse enums (enumerated types) along with switch statementsUse string variables in switch statementsSummarize the key concepts covered in this course
IN THIS COURSE
-
2m 13s
-
9m 9sIn this video, find out how to change the order in which a program runs using the if construct. FREE ACCESS
-
6m 25sLearn how to use the else clause to provide an alternate code path to control the program's flow. FREE ACCESS
-
5m 28sDuring this video, you will learn how to apply additional applications of using the else clause to provide an alternate code path to control program flow. FREE ACCESS
-
9m 34sIn this video, find out how to use nested if-else conditions to deal with conditions that are not mutually exclusive. FREE ACCESS
-
9m 39sFind out how to use nested if-else clauses to deal with more complex combinations of user input. FREE ACCESS
-
8m 34sFind out how to use strings in if-else constructs, relying on the .equals() method and avoiding the == operator. FREE ACCESS
-
9m 32sDuring this video, you will learn how to use the switch construct rather than nested if-else statements to control program flow. FREE ACCESS
-
11m 17sIn this video, you will use the default keyword to deal with unexpected values in switch evaluations. FREE ACCESS
-
6m 44sIn this video, you will learn how to use enumerated types (enums) along with switch statements. FREE ACCESS
-
11m 8sFind out how to use string variables in switch statements. FREE ACCESS
-
54sIn this video, we will summarize the key concepts covered in this course. FREE ACCESS
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.