Japanese people don't usually eat in public let alone walk and eat. On local trains, eating and drinking anything other than water should be avoided. The only time where eating and drinking on trains is acceptable is on regional long-distance trains, like the Shinkansen, where every seat has a tray and cup holder.