Control Structures – How to Program with Java Podcast Episode 3

by Trevor Page on September 26, 2012

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 contact me at tpage@ecosim.ca.




{ 8 comments… read them below or add one }

Leave a Comment

Powered by sweet Captcha

Previous post:

Next post: