public class RecursivePrint1 { public static void main(String[] args) { //Print the integers from 1 to 10 inclusive. f(1); System.exit(0); } //Print the integers from start to 10 inclusive. private static void f(int start) { if (start <= 10) { System.out.println(start); //System.out.printf("%2d\n", start); f(start + 1); } } }