title: How to bitwise shift a binary string in java?
body: <p>I have a 10 bit binary string and i have to bitwise shift circularly at each iteration. I am so confused and lost doing it. What could be the logic behind it to do easily? If it is a hex number, we can do it by num>>1 or num&lt;&lt;1 but string like "1010101010" should be converted to hex before we apply bitwise shift. I have to apply the bitwise shift circularly 10 times.</p>