Error while accessing array of String. (java.lang.UnsupportedOperationException)
<p>In my code i have Array of String variable stored in a class statically. While trying to access the string in another class this error occurs. I cant find the reason and solution for this. Can any one please help me on this. </p>

<p>Here is my code</p>

<p>Module.java</p>

<pre><code>        static String[] myLogoName = new String[] { "one",
        "two", "three", "four","five", "six" };
</code></pre>

<p>Sample.java</p>

<pre><code>    String tempLogo = "three";
private boolean checkLogoimage(String filePath) {
    for (int i = 0; i &lt; Modules.myLogoName.length - 1; i++) {
        if (Modules.myLogoName[i] == tempLogo) {
            LogoVal = i;
            return true;
        }
    }
    return false;
}
</code></pre>

<p>while debugging this error occurs and while Running eventhough the value is in the string it is not showing that...</p>

<p>Edited:</p>

<p>This is the error that occurs while debugging..</p>

<pre><code>03-23 19:40:12.807: E/jdwp(12074): REQ: UNSUPPORTED (cmd=2/11 dataLen=8 id=0x000e08)
</code></pre>

<p>Note: there is no error while running.</p>

<p>Thanks,
Regards, Sniper</p>
