Insert several chars instead of one into string
<p>I have a string with expression. For example the string is "a + b". I need insert float variables instead of that characters. "a" = 2.4494 and "b" = 5.545466. I convert variables to string and then make from strings with expression and with values char arrays.</p>

<pre><code>expr = expressions.get(i)[0]; // string with expression
        for (int j = 0; j &lt; valsListArray.length; j++) {//find characters and values
                                                        //they should have      
            String selection = (String) valsListArray[j].getSelectedItem(); //get 
                                                               //chosen character
            Float valueFloat = segmentAreas.get(j);          //get value
            String valueString = "" + valueFloat;
            char[] charexpr = expr.toCharArray();                           //
            char[] valueChar = valueString.toCharArray();
            char[] ch = selection.toCharArray();
            for (int jj = 0; jj &lt; charexpr.length; jj++) {
                if (charexpr[jj] == ch[0]) {  
                    charexpr[jj] = valueChar[0];    //here is the problem
                }
            }
            String s =new String(charexpr);
            expr = s;
</code></pre>

<p>but I cant understand how insert the whole charArray instead one character...</p>
