jam/MindBreaker

From ggc

Jump to: navigation, search

01 package jam;
02 
03 import wiki.Wiki;
04 /**
05  * All about my application here.
06  @author Jam Jenkins
07  */
08 public class MindBreaker
09 {
10   public void printNumbers(int end)
11   {
12     if(end==0)
13     {
14       Wiki.out.println("0");
15     }
16     else
17     {
18       printNumbers(end-1);
19       Wiki.out.println(end);
20     }
21   }
22 
23   public static void main(String[] args)
24   {
25     new MindBreaker().printNumbers(10);
26   }
27 }


Download/View jam/MindBreaker.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