Java Programming: Iterative Evaluation

Java    |    Intermediate
  • 11 videos | 1h 28m 27s
  • Includes Assessment
  • Earns a Badge
Rating 4.5 of 30 users Rating 4.5 of 30 users (30)
This 11-video course examines the use of loops in Java, where iterative control structures are named for-loops, while loops, and do-while loops. This course opens by studying simple for-loops and introduces the concepts of the check expression, the loop variable, and the UPDATE statement. You will learn how to use enhanced for-loops, popular for iterating over arrays and collections. Participants then explore how to short-circuit a loop by using the break statement, and how to short-circuit the current iteration by using continue. Once a break statement is encountered in a loop, it is automatically terminated and the program control resumes at the next statement following the loop. The course then demonstrates how to do this in the context of for-loops, while loops, and do-while loops. You will learn to identify situations where for-loops are preferable to while loops. Finally, examine the dangers of infinite looping in the context of while looping, and learn to identify common pitfalls that lead to infinite looping and how to avoid these pitfalls.

WHAT YOU WILL LEARN

  • Discover the key concepts covered in this course
    Use for loops to iteratively execute a block of code
    Prematurely terminate loop execution using the break keyword
    Short-circuit execution of the current loop iteration using the continue keyword
    Effectively use nested loops
    Use enhanced for loops, also known as for-each loops, to iterate over arrays and iterable objects in java
  • Use while loops to control the number of times a block of code executes based on the value of a specific expression
    Use multiple loop variables to control the number of iterations in a while loop
    Identify common causes of infinite looping, such as incorrect use of the continue keyword
    Use the do-while loop control structure to ensure that the body of a loop is always executed at least once, regardless of the value of the loop variable
    Summarize the key concepts covered in this course

IN THIS COURSE

  • 2m 12s
  • 9m 5s
    During this video, you will learn how to use for loops to execute a block of code multiple times. FREE ACCESS
  • Locked
    3.  The break Keyword
    9m 41s
    During this video, you will learn how to end loop execution early using the break keyword. FREE ACCESS
  • Locked
    4.  The continue Keyword
    9m 56s
    Use the continue keyword to short-circuit execution of the current loop iteration. FREE ACCESS
  • Locked
    5.  Nested Loops
    10m 9s
    Learn how to use nested loops effectively. FREE ACCESS
  • Locked
    6.  Enhanced for Loops
    7m 56s
    Learn how to use enhanced for loops, also known as for-each loops, to iterate over arrays and iterable objects in Java. FREE ACCESS
  • Locked
    7.  While Loops
    10m 21s
    In this video, you will learn how to use while loops to control the number of times a block of code executes based on the value of a specific expression. FREE ACCESS
  • Locked
    8.  Multiple Loop Variables
    7m 38s
    During this video, you will learn how to use multiple loop variables to control the number of iterations in a for loop. FREE ACCESS
  • Locked
    9.  Infinite Loops
    10m 45s
    During this video, you will learn how to identify common causes of infinite looping, such as incorrect use of the continue keyword, and how to fix them. FREE ACCESS
  • Locked
    10.  Do-while Loops
    9m 35s
    In this video, find out how to use the do-while loop control structure to ensure that the body of a loop is always executed at least once, regardless of the value of the loop variable. FREE ACCESS
  • Locked
    11.  Course Summary
    1m 9s
    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 5.0 of 2 users Rating 5.0 of 2 users (2)
Journey Java Journey
Rating 4.5 of 8 users Rating 4.5 of 8 users (8)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.6 of 46 users Rating 4.6 of 46 users (46)
Rating 4.6 of 57 users Rating 4.6 of 57 users (57)
Rating 4.6 of 80 users Rating 4.6 of 80 users (80)