Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有整数。如何检查这个整数在二进制表示中是否有奇数或偶数 1?
看看Integer.bitCount(int i)。