Sun Jun 29 21:39:24 EDT 2003 ==> Melon.java <== /** * Tiny melon class for COM1204 * author bob * version 6/25/03 */ public class Melon { int slices = 1; void slice() { slices++; } void eat() { if (slices == 0) return; slices--; } void describe() { System.out.println("Melon has " + slices + " slices"); } } // Melon ==> TestMelon.java <== /** * Tests tiny melon class for COM1204 * author bob * version 6/25/03 */ public class TestMelon { public static void main(String[] args) { Melon m = new Melon(); m.describe(); m.slice(); m.slice(); m.slice(); m.describe(); m.eat(); m.describe(); } }// TestMelon