Fixed java examples of Add parameter.