- public class printrange
- {
- public static void main(String[] args)
- {
- int beginIndex = Integer.valueOf(args[0]);
- int endIndex = Integer.valueOf(args[1]);
- int increment = Integer.valueOf(args[2]);
- for(beginIndex = beginIndex -1; beginIndex < endIndex; beginIndex++)
- {
- beginIndex += increment -1;
- System.out.println("count is: " + beginIndex);
- {
- }
- }
- }
- }
forloopargs
By: microhaxo | Date: Nov 12 2008 00:16 | Format: None | Expires: never | Size: 395 B | Hits: 1167
Latest pastes
1 hours ago
11 hours ago
1 days ago
2 days ago
2 days ago