Some schools have dormitories, while some only introduce private lodgings to foreign students.
Please contact your school or university office for lodgings if you have difficulty in finding one after your arrival in Japan. There are student dormitories which are run by the state, a self-government body or a private organization , but the number is few. The dormitory's rent is cheap, but there are certain requirements for those who want to stay there. However, a foreigner who has been residing in that prefecture for a certain term, and those who have family living in the same prefecture can apply for such accommodation. However, in areas where public transportation facilities are convenient, it will be quite competitive to get one.