@@ -0,0 +1,467 @@
+package chapter_5;%0A%0Apublic class BinaryString %7B%0A  public String toBinaryString(double num) %7B%0A    StringBuilder builder = new StringBuilder();%0A    builder.append(%220.%22);%0A    int counter = 0;%0A    while (num %3E 0) %7B%0A      if (counter %3E 32) %7B%0A        return %22ERROR%22;%0A      %7D%0A      num = num * 2;%0A      if (num %3E= 1) %7B%0A        builder.append(1);%0A        num -= 1;%0A      %7D else %7B%0A        builder.append(0);%0A      %7D%0A      counter++;%0A    %7D%0A    return builder.toString();%0A  %7D%0A%7D%0A

Add solution for BinaryString