for(int i = 0; i < 10; i++) { //10 is the number where the loop stops System.out.println(i); //Prints the number }