///////////////////////////////////////// //// PlayMoney.java ///////////////////////////////////////// public class PlayMoney { public static void main(String[] args) { Wallet leather, nylon, linen, vinyl; leather = new Wallet( ); nylon = new Wallet(5, 3); linen = new Wallet(1, 10); vinyl = new Wallet(5, 3); printWallet(leather, "leather"); printWallet(nylon, "nylon"); printWallet(linen, "linen"); linen = leather; equalReport("natural", linen, leather); equalReport("fake", nylon, vinyl); linen = new Wallet(1, 10); linen.minimize( ); printWallet(linen, "linen"); } public static void printWallet(Wallet w, String label) { System.out.println(label + ": " + w); } public static void equalReport(String description, Wallet a, Wallet b) { if (a.equals(b)) { System.out.println(description + " equal"); } } }