Control Structures

 

Here’s a breakdown of the Episode

Wiki: A control structure is a block of programming that analyzes variables and chooses a direction in which to go based on given parameters. The term flow control details the direction the program takes (which way program control “flows”). Hence it is the basic decision-making process in computing; flow controldetermines how a computer will respond when given certain conditions and parameters.

-Let’s describe that wiki statement in more human terms
– code read LINE BY LINE from top to bottom, and for the most part left to right) – CODE FLOW
– choose your own adventure… only you can have loops
– computer has a decision to make

– What are the different kinds of control structures
– IF statements
– Loops
– For
– While
– Do While

Your Homework

Please read this Java Tutorial on Control Structures to learn a bit about the actual syntax of the Java code for control structures.

If you need help, don’t hesitate to leave a comment below. I love getting questions!

 

Free Java Beginners Course

Start learning how to code today with our free beginners course. Learn more.

Thank you for your message. It has been sent.
There was an error trying to send your message. Please try again later.