scg/ch08/MoreNumbers

From FANG

Jump to: navigation, search

01 package scg.ch08;
02 
03 import fang2.core.Game;
04 
05 /** Iteration demonstration */
06 public class MoreNumbers
07   extends Game {
08   /**
09    * 1-100, 7 per line
10    */
11   @Override
12   public void setup() {
13     for (int = 0; i != 100++i{
14       if (((% 7== 0&& (!= 0)) {
15         System.out.println();
16       }
17       System.out.print(" " + i);
18     }
19     System.out.println();
20   }
21 }
22 
23 //Uploaded on Mon Mar 29 21:39:44 EDT 2010


Download/View scg/ch08/MoreNumbers.java





Views
Personal tools
Add to 
del.icio.usAdd to 
diggAdd to 
FacebookAdd to 
favoritesAdd to 
GoogleAdd to 
MySpaceAdd to 
PrintAdd to 
SlashdotAdd to 
StumbleUponAdd to 
Twitter

Games
Games