home *** CD-ROM | disk | FTP | other *** search
/ Java by Example / jbecd.bin / JBE-CD / NTUsers / JBECODE.ZIP / JavaByExample / chap10 / lst10_1.txt < prev    next >
Text File  |  1996-02-06  |  167b  |  10 lines

  1. num = 1;
  2. while (num < 10)
  3. {
  4.     ++num;
  5.     String s = String.valueOf(num);
  6.     g.drawString("num is now equal to:", 20, 40);
  7.     g.drawString(s, 20, 55); 
  8. }
  9.  
  10.