How to Get WIFI
You can spend hours researching pocket-WIFIs and SIM card options, so let’s keep it simple:
If your accommodations in Japan has WIFI, just get a Japanese (data only) sim card for your (unlocked) phone, and enjoy your life.
If you’re renting your own apartment, you will need WIFI. Don’t bother setting up WIFI in your apartment. The easier solution is to get a Japanese (data only) sim card, with a high monthly data limit, for your (unlocked) phone. You use the phone as a hotspot.
You can also get a pocket wifi. Mobal is my recommended pocket-WIFI. Basically unlimited data for $35/month. You buy the device for $50, and have it shipped to your school in Japan. Shipping takes about 1 week, and activation happens a few days later.