code: public static String toBinaryString(byte[] bytes) {
          StringBuilder buffer = new StringBuilder();
          for(byte b: bytes) {
              String bin = Integer.toBinaryString(0xFF & b);
              bin = bin.substring(0, Math.min(bin.length(), 8));
  
              for(int j = 0; j < 8 - bin.length(); j++) {
                  buffer.append('0');
              }
  
              buffer.append(bin);
          }
          return buffer.toString();
      }
docs: Translate the given byte array into a string of 1s and 0s
  
  @param bytes The bytes to translate
  @return The string