Record my java code