source code during java training practice