← Back to Miscellaneous
Question 403
Integer to Binary String
Integer to Binary String
The integern = 13is given. Print its binary (base-2) representation usingInteger.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.