Binary difference checker
There's no need to roll your own: the library support is there.

public static int convertBits(int a, int b) {
    return Integer.bitCount(a ^ b);
}


For what it's worth, I don't think convertBits is a very descriptive name for the method. I'd suggest something like countBitDifferences.