Languages
[Edit]
EN

Java - convert long to binary String

13 points
Created by:
Root-ssh
178170

In java simples way to convert long to binary String is to use Long.toBinaryString(number).

Simple example:

1. Convert long to binary String

Edit

Output:

2. Convert large long to binary String

Edit

Output:

3. Print long converted to binary String representation between 0 and 8

Edit

Output:

Merged questions

Edit
  1. Java - convert long to binary String representation
  2. How to cast long to binary string in java?
  3. Java - print long in binary format
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

Java conversion

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join