Hi
I am looking for a sample code for doing the stuff
java test -d 5
I am trying to write a code with optional arguments like -d=5 or --depth=5 depending upon which i can carry my work
For any help Thanks in advance
Hi
I am looking for a sample code for doing the stuff
java test -d 5
I am trying to write a code with optional arguments like -d=5 or --depth=5 depending upon which i can carry my work
For any help Thanks in advance
Maybe the discussion made in this topic will assit you - What are Command-Line Arguments in Java?
thanks for the try
but as i mentioned earlier i want something like
java ClassName -d=4 Filename
Where className is the name of class from where execution will start
-d is predefined command line argument for which we are passing vallue 4
& filename is the name of some other file on which i want to operate
I know hot to get filename or filenames using args variable but what i want to know is that how can i declare -d as a command line variable.
Thanks once again,
Vipul
Bookmarks