Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
With String[] args, I can get input on run, But how to set custom parameter for each input like:
String[] args
-c for cat name, -d for dog name
-c
-d
so that I can run java abc.jar -c myCat -d myDog or java abc.jar -d myDog -c myCat
java abc.jar -c myCat -d myDog
java abc.jar -d myDog -c myCat
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.