Encrypting text in Android (Java)
<p>Please help me to correct the code. The string is not getting encrypted.</p>

<pre><code>private static String Encrypt(String val)    
{    
    int len = val.length();    
    int[] k = new int[len];    
    for (int n = 0; n &lt; (len-1); n++)    
        k[n] += 5;    
    val = k.toString();  
    return val;    
}
</code></pre>
