java programming class, assiganment 005