Site hosted by Angelfire.com: Build your free website today!
       
The Digital Reference Section

JAVA Program Control Flow
Compiled by Rodelio Barcenas


If statement

if (<condition>) {

}
else {

}


For loop

for (<initialization>;<condition>;<increment>) {

}


While loop

while (<condition>) {

}


Do-While loop

do {

} while (<condition>);


Switch statement

switch(<value>) {

case <ref value1>:

---------;
---------;
---------;
break;

case <ref value2>:

---------;
---------;
---------;
break;

}



The PinoyTechZone.Com
Copyright 2002-2003
All rights Reserved