我想知道如何用位表示的位串实现循环右移int.
int
public int rtCircShift(int bits, int k) { return bits >> k; }
所有这些代码都返回0,我怎样才能使它成为循环移位?
java
java ×1