File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
number of arguments
Joined: Feb 06, 2001
Jun 07, 2001 03:45:00
How can you count the number of command line arguments supplied at runtime?
Cheers,<br />Rani<br />SCJP, SCWCD, SCBCD
Joined: Nov 06, 2000
Jun 07, 2001 05:31:00
Assuming your main method starts as follows..
public static void main(String args)
The length of the args array should give you what you need.
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: number of arguments
Problem with ArrayList .contains() method
spring constructor autowiring
CAN ANY BODY MADE THIS
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015