Java examples part-1


These applets are used in lectures to introduce loop constructs.

The important thing with these examples is that you understand how the results are generated from the code. A good way to do this is to dry run the code, some you might be able to dry run in your head, others you'll need to do on paper.




TAloop0 A First Loop
TAloop1 A Second Loop
Loop2 A for loop to draw lines
Loop3 Another line drawer
Loop4 Using while
SinWave A Sine Wave