You can buy pretty much anything from vending machines... from underwear and ramen to French fries.
Vending machines are a big part of Japanese culture. You'll find them on most street corners and outside many restaurants where you actually order via vending machine and give your ticket to the staff. In fact, there's one vending machine for every 23 people in Japan — the highest human to vending machine ratio in the world.
You can buy almost anything from these widely available and diversely stocked machines, including piping hot bottles of green tea, ice cream, toys, tech gadgets, underwear, and freshly made foods.