Java final project(1st year)