Set my own rule of converting char array to String in Java
<p>I am actually writing a program to generate some truely random numbers. So, i am trying to write an algorithm to calculate from various factor.And i want to define my own encoding, so that when it is converted, it can only be strings of certain characters.</p>

<p>for example, the user wants only small letters, so i want something like this:</p>

<pre><code>char[] result;
String result = new String(result,"MY OWN ENCODING")
</code></pre>

<p>Is there a way ?</p>

<p>Thanks alot !</p>
