home *** CD-ROM | disk | FTP | other *** search
/ Java by Example / jbecd.bin / JBE-CD / NTUsers / JBECODE.ZIP / JavaByExample / chap09 / lst9_5.txt < prev    next >
Encoding:
Text File  |  1996-02-06  |  174 b   |  17 lines

  1. if (choice == 1)
  2. {
  3.     num = 1;
  4.     num2 = 10;
  5. }
  6. else if (choice == 2)
  7. {
  8.     num = 2;
  9.     num2 = 20;
  10. }
  11. else if (choice == 3)
  12. {
  13.     num = 3;
  14.     num2 = 30;
  15. }
  16.  
  17.