@@ -0,0 +1,314 @@
+package chapter_5;%0A%0Apublic class Conversion %7B%0A  %0A  public int numConversionBits(int n, int m) %7B%0A    int x = n %5E m;%0A    return countOnes(x);%0A  %7D%0A  %0A  private int countOnes(int n) %7B%0A    int counter = 0;%0A    while(n %3E 0) %7B%0A      counter += ((n & 1) != 0) ? 1 : 0;%0A      n %3E%3E%3E= 1;%0A    %7D%0A    %0A    return counter;%0A  %7D%0A%7D%0A

Add solution for Question 5.6 Conversion