This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
hi i can easily do it with a method with 2 variables, eg. display(int m, int n), Could you post the program here? As we know, you can do with 2 variables, some edit are needed to do with only one variable. Following structure is used for writing recursion
Joined: Sep 23, 2004
oops sorry i meant parameters not variables so sorry
method is display(int m, int n)
so to print "12345678910" from one to 10 is display(1,10)