Chapter3.0 java