Why does asterisk (*) not pass as a normal character in String[] args?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2718873/problem-of-in-command-line-argument">Problem of * in Command line argument</a>  </p>
</blockquote>



<p>I've written a simple attempt at a small calculator which does 4 operators (+,-,* and /).</p>

<p>When I pass any other 3 operator to my program through the command line, "java Calc 4 + 4", it works. However, when I tried passing "4 * 4" I get a reference to a Class.class - why is this objectified instead of being handled as a normal string? What is happening here? </p>

<p>Is it something to do with the Windows command line using the * as wildcard? If so, how can I get around this?  </p>

<p>For now, as a simple fix, I've written the operator multiplies as the character 'x'. </p>

<p>TIA</p>
