title: Bit data type in Java
body: <p>I am writing a program, in Java, which need bit processing, and manipulations. But I could not find any "bit" level primitive datatype. Is there any way in Java to define "bit" datatype?
  In C/C++, we can tell compiler how many bits to allocate for variables storage as</p>
  
  <pre><code>struct bit {
      unsigned int value : 1;   // 1 bit to store value
  };
  </code></pre>
  
  <p>How can I do same thing in Java?</p>