java code for internship