Added some comments to JavaExample