If you would like something easy before you tackle the petrol pump class in this weeks practical work you can try the vendingMachine class.
The instructions below will guide you through writing a simple class, and a program is provided to test it. You can save the program to your directory but also print it out so you can follow it as you run it.
Note this is optional. You may go straight into the petrol pump class if you wish.
Instructions for VendingMachine class
Test Program : TestVending.java