Create java code