Site hosted by Angelfire.com: Build your free website today!

Glossary

boolean: Holds two values: "true" and "false." Boolean values are not 1 or 0 as in C++. They must be set to "true" or "false", and they are not interchangable with integers.

class HelloWorld: To run your program, you must use this name! It is case sensitive! To compile your program however, you must use the name you saved the program as. That is also case sensitive.

for: Ah yes, the for loop. In a for loop, you must have a variable set to a number, a comparison between the variable and another number, and what to do if the previous statements are true. In this case we have:

i<11: Part of a for loop (At least in the program this was taken from). This part says that as long as i is less than 11...The next part of the for loop will tell it what to do.

i++: This part tells the computer what to do as long as i is less than 11. In this case, it will add 1 to i until it is less than 11.

int: The integer type hold 32-bits of data and is always an integer (Surprise, Surprise!).

n%7: This statement makes the computer check if there is a remainder when n is divided by 7.

public static void main (String args[]: I'm not really sure what this does. But without it, your program is as good as a deaf telephone operator.

System.out.println("Hello World!"): This is what actually prints out Hello World. It will print it on a new line. You will learn about the "print" statement later on.

System.out.print("Text here"): This will print text without making a new line.