The BFOIT Java Programming Class
Appendix F (Java Statements)


assignment statement

block statement

if statement

if-else statement

for statement

return statement

Used in methods, the return statement is used to end execution of a method, returning to where the method was invoked.  For methods that are declared to return values (all methods other than of type void), a value of the proper type must follow the keyword return and precede the semicolon which terminates the statement.

while statement


Back to Table of Contents