title: Java char contains value > 255?
body: <p>I get a char array from a socket :</p>
  
  <pre><code>char[] cbuf = new char[3];
  inputStream.read(cbuf, 0, 3); // read 3 chars in buffer "cbuf", offset = 0
  </code></pre>
  
  <p>Then when I print that :</p>
  
  <pre><code>System.out.println("r:"+(int)cbuf[0]+" g:"+(int)cbuf[1]+" b:"+(int)cbuf[2]);
  </code></pre>
  
  <p>I get at some point :</p>
  
  <pre><code>...
  r:82 g:232 b:250
  r:82 g:232 b:250
  r:66 g:233 b:8224
  </code></pre>
  
  <p>The <strong>8224</strong> value is way more than <strong>255</strong>, how can a char contain this value ???</p>
  
  <p>Thank you</p>