CJCoding With Joseph

Integer to Binary String

The integer n = 13 is given. Print its binary (base-2) representation using Integer.toBinaryString:

1101

Let the method do the conversion — do not type the digits yourself.

Expected Output:

1101
Topics:
Miscellaneous
Code Editor
1
Tab to indent · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (sysout, psvm, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.