simple code java for internship student