1

With String[] args, I can get input on run, But how to set custom parameter for each input like:

-c for cat name, -d for dog name

so that I can run java abc.jar -c myCat -d myDog or java abc.jar -d myDog -c myCat

0

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.