is there any fuction in java which behaves like getopt from c
<p>Hello I am working on command line application which can accepts command line argument like </p>

<pre><code>app -port 8888 -filename d:\xyz\xyz.pdf -dest d:\pqr
</code></pre>

<p>i am looking for fuction which can return me pair of option and it corresponding value like getopt in c.</p>
