@@ -0,0 +1,244 @@
+public class Solution %7B%0A    // you need to treat n as an unsigned value%0A    public int hammingWeight(int n) %7B%0A        int bit = 0;%0A        while(n != 0)%7B%0A            bit += (n & 1);%0A            n = n %3E%3E%3E 1;%0A        %7D%0A        return bit;%0A    %7D%0A%7D

Q191 Number of 1 Bits