You will never go hungry on a Japanese train. Major stations offer a wide range of ekiben
which often contain a local speciality.
Additionally, if you haven't had time to buy a bento, there is a regular trolley service in the cars (except for local trains). Enjoying a delicious ekiben while you watch the scenery go by is one of the highlights of the trip.