Completed java imp