Java - Circular shift using bitwise operations
<p>I am wondering how to implement a circular right shift by k of the bitstring represented by the int bits.</p>

<pre><code>public int rtCircShift(int bits, int k)

{

    return bits &gt;&gt; k;

}
</code></pre>

<p>All this code does is return 0, how can I make it a circular shift?</p>
