title: Java long to binary
body: <p>something I thought was simple ends up not so much.</p>
  
  <p>I need to convert a long number to binary.</p>
  
  <p>For example:</p>
  
  <pre><code>String b =  Integer.toBinaryString(1028);
  </code></pre>
  
  <p>the output is 10000000100</p>
  
  <p>but when I use  Integer.toBinaryString(2199023255552); it does not work. Of course the number is too big for this function and I can't find one that does convert from long.</p>
  
  <p>Any suggestions?</p>
  
  <p>Thank you.</p>