Java Programming: Conditional Evaluation

Java SE 13
  • 12 Videos | 1h 35m 37s
  • Includes Assessment
  • Earns a Badge
Likes 32 Likes 32
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 course
    modify control flow in a program using the if construct
    use the else clause to provide an alternate code path to control program flow
    demonstrate additional applications of using the else clause to provide an alternate code path to control program flow
    use nested if-else conditions to deal with mutually exclusive conditions
    use 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 == operator
    use the switch construct rather than nested if-else statements to control program flow
    use the default keyword to deal with unexpected values in switch evaluation
    use enums (enumerated types) along with switch statements
    use string variables in switch statements
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 13s
    UP NEXT
  • Playable
    2. 
    Conditional Evaluation
    9m 9s
  • Locked
    3. 
    Introducing the else Clause
    6m 25s
  • Locked
    4. 
    Constructing if-else Blocks
    5m 28s
  • Locked
    5. 
    Nested if-else Clauses
    9m 34s
  • Locked
    6. 
    User Input and if-else
    9m 39s
  • Locked
    7. 
    Comparing Strings in if-else
    8m 34s
  • Locked
    8. 
    Introducing the switch Statement
    9m 32s
  • Locked
    9. 
    The default keyword
    11m 17s
  • Locked
    10. 
    Enumerated Types in Switch Statements
    6m 44s
  • Locked
    11. 
    String Variables in Switch Statements
    11m 8s
  • Locked
    12. 
    Course Summary
    54s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE