Why is the compiler still demanding a return statement? : <p>Why is my java compiler asking for a return statement when I've already placed one in my if statement loop? And how to I fix this so it returns the proper value?</p>

<pre><code>public static String checkNumbers(int x1, int y1, int x2, int y2, int x3, int y3) {

    String x = "True";
    String y = "False";


    int[][] array = {{x1, y1}, {x2, y2}, {x3, y3}};

    for (int i = 0; i &lt; array.length; i++) {
        if (array[0][0] == 5) {
             return x;

        } else return y;
    }

}
</code></pre>
