import java.io.PrintStream; public class Test2CShort { public static void main(String[] args) { PrintStream out = System.out; final int START = Integer.parseInt(args[0]); final int STOP = Integer.parseInt(args[1]); /* For a maximum of 6 / 10: All that is needed is a for loop that counts from START up to STOP (inclusive). */ for (int i = START; i <= STOP; i++) { out.println(i); } } }