Leading US confectioner Hershey Foods has reported a healthy rise in net profits in its second quarter ended 4 July.