Having trouble reading string in if statement
<p>I am able to covert an integer array to a string.</p>

<pre><code>    if (tempArray1[6] == true) {
        num[0] = 1;
    }
    if (tempArray2[6] == true) {
        num[1] = 1;
    }
    if (tempArray3[6] == true) {
        num[2] = 1;
    }
    if (tempArray4[6] == true) {
        num[3] = 1;
    }

    Number = Arrays.toString(num).replace(",", "");
    Log.e("NUMBER", "number is :" + Number);
</code></pre>

<p>The outcome of the Log statement reads </p>

<p>11-07 10:03:17.577: ERROR/NUMBER(990): number is :[1 1 0 0]</p>

<p>Now i try to use an if statement to check for the possible outcome:</p>

<pre><code>    if (Number == "1 1 0 0") {
        Log.e("NOTIFY", "1100");
       notificationMessage = "Input Wire 1 and 2";
    }
</code></pre>

<p>But for some reason it never find this if statement to be true, even though log says that Number is 1100. Can someone please help me in being able to read the value of Number(string) in the if statement. </p>
