title: If statement not working when trying to find entry in array
body: <p>This is a shortened version of the code I'm having issues with.</p>
  <p>This is an example of a possible input:</p>
  <pre><code>3
  a b c
  d e f
  g h i
  </code></pre>
  <p>The 3 specifies the number of rows and columns, and the rest is what I want to be put into my array.
  My code then puts this input into an array:</p>
  <pre><code>String[][] arr = [[a, b, c], [d, e, f], [g, h, i]]
  </code></pre>
  <p>However, when I try use an if statement to check if the last entry is an i, the program doesn't recognise that the last entry is an i</p>
  <pre><code>
  if (arr[2][2] == &quot;i&quot;){
      System.out.println(&quot;There is an i&quot;);
      }
      else {
          System.out.print(&quot;No i found&quot;);
      }
  </code></pre>
  <p>In this example code, my program would say &quot;No i found&quot; even though there is an <code>i</code> at <code>arr[2][2]</code></p>
  <p>What could be the issue with my code?</p>