Evan Raynolds

Author posts, statistics and in depth profile

The Switch Statement
 

The versatile switch statement is an alternative to the 'if' statement and has many possible executions. Along with some complex data types, the switch statement can be expressed with the int, short, byte or char primitive data types, and since Java 7, it works with the String class.

For Loops!
 

In programming, the for statement is known as an iterator, which is a fancy way of saying something that repeats a procedure. It is commonly referred to as a 'for loop' because it does just that, it loops. The for loop creates a space in a program where code written within the curly braces in the body of the statement will repeat until a certain condition is met.