How do I compare a string in an array to a string?
<p><strong>EDIT: IT'S FIXED, THANKS FOR THE HELP!</strong></p>

<p>So basically I have an array of strings, a question and an answer</p>

<pre><code>public static String[][] triviaData = { 
    {"Question2", "Answer1"},
    {"Question2", "Answer2"},
    {"Question3", "Answer3"},
};
</code></pre>

<p>And I am trying to make a method that validates an entered input, lets call the entered input <code>enteredAnswer</code>. <code>enteredAnswer</code> is stored as a <code>String</code>.</p>

<p>I am trying to validate that the <code>enteredAnswer</code> is the same as the second index of the array.</p>

<pre><code>if (enteredAnswer.equalsIgnoreCase(triviaData[Config.CurrentQuestion][1])) {
</code></pre>

<p>This is the code I tried, but I get the error "Cannot invoke <code>equalsIgnoreCase(String)</code> on the array type <code>String[]</code>"</p>

<p>I am a beginner programmer so if you could help me out it would be highly appreciated. Thanks.</p>

<p><code>enteredAnswer</code> is stored as</p>

<pre><code>public String[] enteredAnswer;
</code></pre>
