Introduction to Programming: Additional work for week 7

For-loops were covered rather briefly in week 7. You can find some additional local notes and exercises on for loops here with solutions to the exercises here. Some more discussion on loops can be found in the local notes entitled triangles, which also introduce the import topic of recursive static methods. I am not planning to cover these notes in detail this year, but they are worthwhile reading.

Some further notes on for-loops can be found below:

Fred Swartz has produced an extensive set of reference notes on Java, which include exercises. You ought to be able to do his exercises on strings, expressions, if-statements and loops.

You can find some notes on string tokenizers from "Developer's Daily" here.

Matthew Huntbach
7th November 2000