September 2005
Beginner
576 pages
13h 6m
English
This hour's workshop provides evidence that you cannot punish your computer in the same way that Bart Simpson is punished at the beginning of each episode of The Simpsons. Pretend you're a teacher and the computer is a kid who contaminated your morning cup of coffee with Thorium 230.
Even if you're the most strident liberal, you realize that the computer must be taught a lesson—it's not acceptable behavior to give the teacher radiation poisoning. Your computer must be punished, and the punishment is to display the same sentence over and over again.
The Repeat program will use a loop statement to handle a System.out.println() statement again and again. Once the computer has been dealt this punishment for ...
Read now
Unlock full access