java chapter 1 example