java code now finished