Only 11% of Japan lives in Tokyo, so who cares? It's overpriced anyway.
Japan obviously can find a use for software developers. Japan launches spacecraft, has 2 of the 3 major video game console companies, is well-known as a major place for robotics, has major car companies, and has started to get back into military equipment.
Programming isn't all about web sites and phone apps.