title: new to java: what are the bits between i and j in 10000000000
body: <p>I have been asked to solved the following <a href="http://martinm2w.wordpress.com/2012/06/02/5-1bits-set-i-to-j-bit-in-n-equal-to-m/" rel="nofollow">problem</a>:</p>
  
  <p>You are given two 32-bit numbers, N and M, and two bit positions, i and j. Write a method to set all bits between i and j in N equal to M (e.g., M becomes a substring of N located at i and starting at j). 
  EXAMPLE: 
  Input: N = 10000000000, M = 10101, i = 2, j = 6 
  Output: N = 10001010100 </p>
  
  <p>what I dont understand, is what are the bits between i and j in 10000000000 ? can you explain this for me ?</p>
  
  <p>I have familarity with bitwise operations, but this has totally confused me.</p>