/** Range.java -- Print all the integers within a range specified from the * command line. For example, if the user runs this program from * the command line like this "java Range 1 10" then the program should print * the numbers from 1-10 inclusive. */ public class Range { public static void main(String [] args) { int i, start, finish; start = Integer.parseInt(args[0]); // 1st arg specifies where to start finish = Integer.parseInt(args[1]); // 2nd argument says when to finish for (i = start; i <= finish; ++i) System.out.println(i); } }