5910 Breckenridge Pkwy Suite B, Tampa, FL. 33610
(800) 272-0707

SkillSoft Explore Course

IT Professional Curricula     Software Development Solution Area     Java 2 Programming     Control Structures in Java
Before you build any significant Java application, it is important to get familiar with controlling the flow of code using control structures — a fundamental concept in any programming language. And this is precisely the focus of this course.
With the help of this course, you'll learn how to work with basic if statements, where code is executed if a certain condition is met and if-else and switch statements, which allow you to check for multiple conditions and run chunks of code accordingly. You'll then delve into for and while loops, which allow you to define a block of code that needs to be executed repeatedly under specific conditions and recognize the use of continue and break statements that influence their behavior.
After finishing this course, you'll have the knowledge and skills to control the flow of code execution in your program based on the value of variables or the outcome of operations.

Objectives

Control Structures in Java: Implementing Java Control Structures

  • discover the key concepts covered in this course
  • accept user input and implement conditional execution using if statements
  • recognize the syntax of if statements and make use of else blocks
  • use multiple if statements and explore the use of else-if blocks
  • demonstrate how for loops can be used to iterate the contents of a string or array
  • use switch statements to select categories based on a value
  • describe the different ways in which for loops can be applied, such as nested for loops
  • create a for loop and use the break and continue keywords to control its flow
  • use while loops to perform operations while a condition is true
  • manually compile and run Java code from the command line
  • develop and run a Java program that accepts input from the command line
  • summarize the key concepts covered in this course