package lang;
class Integer02 {
public static void main(String[] args) {
print(Integer.bitCount(0)); // 0000
print(Integer.bitCount(1)); // 0001
print(Integer.bitCount(2)); // 0010
print(Integer.bitCount(3)); // 0011
print(Integer.bitCount(4)); // 0100
}
private static void print(int i) {
System.out.println(""+i);
}
}
==
・目次 - Java言語プログラミング入門
http://blogs.yahoo.co.jp/artery2020/39975776.html
・目次 - ビジネスパーソンの常識と非常識
http://blogs.yahoo.co.jp/artery2020/39728331.html
・目次 - 論理・発想・思考についての考察と鍛え方
http://blogs.yahoo.co.jp/artery2020/39657784.html
==