Japan was a country that practiced isolationism. Therefore, they didn't trade or have contact with anybody.
Some feared that Japan would become too much like Europe, and the shoguns would lose their power. To prevent this, the Japanese isolation policy began in the 1630s, and the ruling shogun closed off Japan from the rest of the world.
Japans rulers banned guns during this period, because they feared that peasants with guns could defeat their samurai armies.
NO GUNS ALLOWED
The combination of isolationism from the world and limited technology helped extend the samurai period in Japan until the 1800's. This was much longer than it was expected to last.
The isolation of Japan helped their economy, because of their long periods of stability and peace. Their economy was booming.But it also affected them in a negative way because they had little trade with foreigners, and the continued use of rice for payment.