How to get all 64 bits of a long as a String in Java?
So I want to do something like this -
long value = 10;
String bits = getBits(value);
System.out.println(bits);
I suppose the output would be
0000...1010 (64 bits)
And no, this is not homework! :)