title: is there any function in java which behaves like getopt from c
body: <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 function which can return me pair of option and it corresponding value like getopt in c.</p>