add thinking in java chapter 4