add all sample codes in Core Java Volume I Chapter 4