|
| |||||||||
| Tags: command line, command line argument, java |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
Command Line Arguments in java
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 |
|
#2
| ||||
| ||||
| Re: Command Line Arguments in java
Maybe the discussion made in this topic will assit you - What are Command-Line Arguments in Java?
__________________ Education, Career and Job Discussions |
|
#3
| |||
| |||
| Re: Command Line Arguments in java Quote:
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 |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Command Line Arguments in java" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Windows Phone 7 Error: Connection failed because of invalid command-line arguments | Saqlain | Portable Devices | 3 | 28-10-2010 01:16 PM |
| What are Command-Line Arguments in Java? | Beter 2 Burn Out | Software Development | 8 | 20-02-2010 03:37 PM |
| I/O from the Command Line in Java | Damien25 | Software Development | 5 | 19-02-2010 12:22 AM |
| PHP command line arguments | Sori | Software Development | 3 | 24-09-2009 01:45 PM |
| How to get command line arguments for windows application in c# | Aaryn | Software Development | 2 | 08-07-2009 01:11 AM |