In both China and Japan, nationalism was tied to d)increased contact with foreigners. This was because both countries had unpleasant run-in's with foreigners (mostly neighboring countries, Western Europeans and Americans) who had taken advantage of the people and committed atrocities.