something I thought was simple ends up not so much.
I need to convert a long number to binary.
For example:
String b = Integer.toBinaryStrin
Add an L to indicate its a long<1> and use the Long class<2>:
L
Long.toBinaryString(2199023255552L);
<1> Constants in java are considered ints unless you specify otherwise.
int
<2> Integer.toBinaryString() receives an int as parameter, not long.
Integer.toBinaryString()