Java Programming: Conditional Evaluation

Java    |    Intermediate
  • 12 videos | 1h 30m 37s
  • Includes Assessment
  • Earns a Badge
Rating 4.6 of 52 users Rating 4.6 of 52 users (52)
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

  • 2m 13s
  • 9m 9s
    In this video, find out how to change the order in which a program runs using the if construct. FREE ACCESS
  • Locked
    3.  Introducing the else Clause
    6m 25s
    Learn how to use the else clause to provide an alternate code path to control the program's flow. FREE ACCESS
  • Locked
    4.  Constructing if-else Blocks
    5m 28s
    During 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
  • Locked
    5.  Nested if-else Clauses
    9m 34s
    In this video, find out how to use nested if-else conditions to deal with conditions that are not mutually exclusive. FREE ACCESS
  • Locked
    6.  User Input and if-else
    9m 39s
    Find out how to use nested if-else clauses to deal with more complex combinations of user input. FREE ACCESS
  • Locked
    7.  Comparing Strings in if-else
    8m 34s
    Find out how to use strings in if-else constructs, relying on the .equals() method and avoiding the == operator. FREE ACCESS
  • Locked
    8.  Introducing the switch Statement
    9m 32s
    During this video, you will learn how to use the switch construct rather than nested if-else statements to control program flow. FREE ACCESS
  • Locked
    9.  The default keyword
    11m 17s
    In this video, you will use the default keyword to deal with unexpected values in switch evaluations. FREE ACCESS
  • Locked
    10.  Enumerated Types in Switch Statements
    6m 44s
    In this video, you will learn how to use enumerated types (enums) along with switch statements. FREE ACCESS
  • Locked
    11.  String Variables in Switch Statements
    11m 8s
    Find out how to use string variables in switch statements. FREE ACCESS
  • Locked
    12.  Course Summary
    54s
    In 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.

YOU MIGHT ALSO LIKE

Rating 4.6 of 37 users Rating 4.6 of 37 users (37)
Rating 4.6 of 80 users Rating 4.6 of 80 users (80)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.6 of 140 users Rating 4.6 of 140 users (140)
Rating 4.5 of 30 users Rating 4.5 of 30 users (30)
Rating 4.7 of 77 users Rating 4.7 of 77 users (77)