Topic+4

**Object Oriented programming**
We have started to learn Java language. The IDE that all of you will be using is Eclipse. Eclipse offers a free download. Check the resources page for link.

Getting stated, display, assignment, store values - Reference text: Cay Horstmann pg 10-27

**String Tokenizer**
A string is a series of words. We call individual parts of strings **tokens**. Taking out individual parts is called **tokenizing**. The characters used to separate one token from another are called **delimiters**.

Code:

//StringTokenizer tokenizer = new StringTokenizer( message);// //while (tokenizer.hasMoreTokens)// //{// //word = tokenizer.nextToken;// //wordCount++;// //}// //System.out.println( "there are " + wordCount + "words in this message");//

Making decisions - IF command. Check out chapter 6, CH

Looping in a program - FOR loop for fixed number of iterations. Check out chapter 7, CH WHILE loop for variable number of iterations DO WHILE loop for variable number of iterations but the loop must get executed at least once.

java templates for class