Final year Project in java