Add java code for 3.3.2