Java Programming Exercises
By Paul Leahy, About.com Guide
This is a mixed bag of simple questions that look at basic parts of programming the Java language. Each question focuses on a small area of Java syntax.
Having to repeat a piece of Java code is common in most Java applications. These exercises aims to test your knowledge of the various types of loops by using them with hex & octal numbers, random numbers, and code points.
These exercise make you apply decision making using a switch statement. To make things more interesting there's a couple of question around creating and reading a simple code.
This section of questions looks at using object methods. You'll need to be able to use loops, create arrays and be able to work out some nifty logic to produce the answers.