title: Sum of the bits in Java
body: <p>sorry Friends i did a mistake. I have did this mistake again. am really very sorry. </p>
  
  <p>this is the Issue. </p>
  
  <p>I have a time range like </p>
  
  <pre><code>int Starttime = 2 which mean(02:00)
  int enttime =  8 which mean(08:00)
  </code></pre>
  
  <p>i want time in sum of bits, 
  example</p>
  
  <pre><code>     00:00 1  
       01:00 2    
       02:00 4  -----
       03:00 8   R
       04:00 16  a
       05:00 32  n
       06:00 64  g
       07:00 128 e
       08:00 256 -----
  </code></pre>
  
  <p>and soo on till 23:00</p>
  
  <p>so i need totalRange = 256+128+64+32+16+8+4 ;   </p>
  
  <p>it should be like this 
  sorry again.</p>
  
  <p>Thanks</p>