Android 2.1 switch loop JRE 1.7
<p>Hello how to use switch loop in my android project ? I want to use Android 2.1</p>

<p>I need JRE 1.7, but I want to use Android 2.1</p>

<p>I use loop like this:</p>

<pre><code>switch ((CHAR[Math.abs(intGen.nextInt()%2)])) {
    case "+":
        result = random2 + random3;
        break;
    case "-":
        result = random2 + random3;
        break;
} 
</code></pre>

<p>LogCat:</p>

<pre><code>Cannot switch on a value of type String for source level below 1.7. Only convertible int values or enum variables are permitted
</code></pre>
