212 Control Structures: Part 2 Chapter 5 (Web site hosting) 54

212 Control Structures: Part 2 Chapter 5 54 default: 55 g.drawString( “Invalid value entered”, 56 10, 20 + i * 15 ); 57 58 } // end switch structure 59 60 } // end for structure 61 62 } // end paint method 63 64 } // end class SwitchTest Fig. 5.7 An example using switch(part 2 of 3). Copyright 1992 2002 by Deitel & Associates, Inc. All Rights Reserved. 7/2/01

Leave a Reply