How to use State Design Pattern in Java? Vending Machine Example

How to use State Design Pattern in Java? Vending Machine Example