java final lab