Public paste
forloopargs
By: microhaxo | Date: Nov 12 2008 00:16 | Format: None | Expires: never | Size: 395 B | Hits: 1086

  1. public class printrange
  2. {
  3.         public static void main(String[] args)
  4.         {
  5.         int beginIndex = Integer.valueOf(args[0]);
  6.         int endIndex = Integer.valueOf(args[1]);
  7.         int increment = Integer.valueOf(args[2]);
  8.                         for(beginIndex = beginIndex -1; beginIndex < endIndex; beginIndex++)
  9.                         {
  10.                         beginIndex += increment -1;
  11.                         System.out.println("count is: " + beginIndex);
  12.  
  13.                         {      
  14.                         }
  15.        
  16.                 }
  17.         }
  18. }