add thinking in java chapter 6