addes java code