public class For2 { public static void main(String[] args) { for (int i = 1; i <= 10; i = i + 1) { System.out.println(i); } //System.out.println("After the loop is over, i is " + i + "."); } }