Example 5:
A new class, Wallet, and a program WalletTest to demonstrate its functionality. Note: Open the browser's Java Console to see the output.