title: Using Unsigned int 32 bit in Java?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/9855087/converting-32-bit-unsigned-integer-big-endian-to-long-and-back">Converting 32-bit unsigned integer (big endian) to long and back</a>  </p>
  </blockquote>
  
  
  
  <p>I want to translate this expression in Java</p>
  
  <pre><code>char tab[100];
  tab[10] = '\xc0';
  
  tab[48] = '\x80';
  
  uint32_t w = 0x67452301;
  
  uint32_t x = 0xefcdab89;
  
  uint32_t y = 0x98badcfe;
  
  uint32_t z = 0x10325476;
  
  a = ((b &amp; c) | (~b &amp; d)) + (*(uint32_t*)(tab+0x00)) + a - 0x28955B88;
  
  a = ((a &lt;&lt; 0x07) | (a &gt;&gt; 0x19)) + b;
  </code></pre>
  
  <p>I'have tried this but...</p>
  
  <pre><code>char[] tab = new char[64];
  
   tab[10] = (char) 0xc0; 
   tab[48] = (char) 0x80; 
  </code></pre>
  
  <p>but the value is not the right one, is there another way to assign \0x80 in a char[] ?
  How can i interprete this kind of cast in java (<em>(uint32_t</em>)) ? </p>
  
  <p>Many thanks !</p>