Control Statements in Java

Course Overview
Overview
Difficulty
Intermediate
Duration
1h 42m
Students
7
Description

This course explores the fundamental concepts and syntax associated with Control Flow and showcases these with some real-life projects.

Learning Objectives

  • Learn about the three categories of control statements: sequential, selection, and repetition
  • Manipulate control statements using the continue and break statements
  • Learn about pseudo-random numbers and the Random class 

Intended Audience

  • Beginner coders or anyone new to Java
  • Experienced Java programmers who want to maintain their Java knowledge
  • Developers looking to upskill for a project or career change
  • College students and anyone else studying Java

Prerequisites

This is a beginner-level course and can be taken by anyone with an interest in learning about Java.

 

Transcript

In the previous sections, we've developed a strong foundation in Java Programming. We know a lot of the basics- variables, constants, and data types, as well as operators, basic user input and output, and other fundamental topics. In this section, we will be exploring the fundamental concepts and syntax associated with Control Flow. Control flow refers to the order in which instructions are executed in a program. By combining control statements in different ways, we can create extremely powerful computer programs. We will discuss control statements in general and then talk about the three categories of control statements, sequence or sequential, selection, and repetition in more detail. 

We also discuss how to manipulate certain control statements using the continue and break statements. Then, we'll discuss and work with pseudo-random numbers and the Random class, which provides random number generation capabilities for us. This will give us more Java tools to add to our ever-growing toolkit. We will work on some very cool projects at the end of this section, including a learning packages of the month program and a divisible by three program. And those random number generators I was talking about, those will help us specifically with the last project in the section, a guess the number program, where the computer decides on a number and the user has to guess it. I'm extremely enthused about all the amazing things we're going to learn in this section. Without further ado, let's get going.

 

About the Author
Students
155
Courses
20
Learning Paths
3

John has a Ph.D. in Computer Science and is a professional software engineer and consultant, as well as a computer science university professor and department chair.

Covered Topics