Cameron Java(tm) Tutorial
Here are some simple exercises to practice your Java programming:
- Write a java program that will loop forever, printing the current then time sleep for 5 seconds. (ans).
Write a java program that add the even numbers 0,2,4 ... 100 to a Vector and then print them out. (ans).
- Write a program that will draw the following picture (ans: face.java - face.html)
- Write an applet that will loop forever printing: "Hello", sleep 2 seconds, print "There", sleep 2 seconds, etc.
Got Java questions?
Maybe my Java Board has the answers?
Java is a registered trademark of Sun Microsystems, Inc.
Cameron Gregory - firstname.lastname@example.org