Japan’s global exports gained 3.7% in October from a year ago, while imports from the world edged up 0.6%, according to government data.