Travelling by train in Japan is really fun. As a tourist you have the opportunity to buy a credit for the Japan Rail Pass outside of Japan. In Japan, the Rail Pass will be issued. Now you can drive as much and as far with the Japan Railway as you want. Other lines cost extra.