Converting from byte to int in java
<p>I have generated a secure random number and put its value into a byte. Here is my code.<br></p>

<pre><code>SecureRandom ranGen = new SecureRandom();
      byte[] rno = new byte[4]; 
      ranGen.nextBytes(rno);
      int i=rno[0].intValue();
</code></pre>

<p>But I am getting an error :</p>

<pre><code> byte cannot be dereferenced
</code></pre>
