www.ecst.csuchico.edu/~jlong/downloadFiles/ControlStructures.ppt
k to results for ""
Below is a cache of http://www.ecst.csuchico.edu/~jlong/downloadFiles/ControlStructures.ppt. It's a snapshot of the page taken as our search engine crawled the Web.
The web site itself may have changed. You can check the current page or check for previous versions at the Internet Archive.
Yahoo! is not affiliated with the authors of this page or responsible for its content.
9/5/08
MINS 116 - Spring 2000
1
Control Structures
MINS 116
Spring 2000
Changing the course of Java based processing
9/5/08
MINS 116 - Spring 2000
2
Topics
Motivation
if
- else
while
for
do
- while
switch
9/5/08
MINS 116 - Spring 2000
3
Motivation
Why would we want to change the course of processing in our programs?
9/5/08
MINS 116 - Spring 2000
4
Motivation
Logical constructs to do this:
if
- else
while
for
do
- while
switch
9/5/08
MINS 116 - Spring 2000
5
if - else
The if-else statement allows logical processing in the form:
if ( something happens )
{
do this;
}
else
{
do this;
}