 <p>This statement, for instance, </p> <pre><code>String studAnswers[][] = answerArray[rowIndex][1].replace(" ", "S"); </code></pre> <p>gives the compilation error</p> <pre><code>Type mismatch: cannot convert from String to String[][] </code></pre> <p>because</p> <p><code>answerArray[rowIndex][1].replace(" ", "S");</code> returns a <code>String</code>. </p> <ul> <li><code>answerArray</code> is a 2D <code>String</code> array.</li> <li><code>answerArray[rowIndex][1]</code> gets a element from the array which is a string </li> <li><code>answerArray[rowIndex][1].replace...</code> replaces a character in that<br> <code>String</code> with another character, ending up as another <code>String</code> (with the replaced character)</li> </ul> <p>You are trying to assign it to a <code>String</code> array.</p> <p>Also, you cannot use <code>equals</code> on primitives (<code>int</code>, <code>char</code>...). You need to use <code>==</code> for comparison.</p>