Simple programs form Thinking in Java