How to get the connection in Japan. Which one is the best choice, public wifi, mobile router or SIM card

The internet access is necessary on the travel in these days. I explain you how to get the internet access on the train travel in Japan.