How can i compare a string and a char array in java?
<p>In my program I'm trying to compare my char array <code>asterixA[]</code> to string (word) in an if loop like:</p>

<pre><code>if (word.equals(asterixA))
</code></pre>

<p>but its giving me an error. Is there any other way i can compare them?</p>
