How to write binary in Eclipse-How to write binary in Eclipse

Time: 2022-05-27Source: Huajun Software TutorialAuthor: Huluwa

Recently, some friends have consulted the editor about how to write binary in Eclipse. The following is a method of writing binary in Eclipse. Friends who need it can come and learn more.

The first step: Open the eclipse software on your computer and configure the jdk.


The second step: Then create a new Javaproject.


The third step: Create a new class file, seduce the main option, and automatically call the main method.


Step 4: Enter the code System.out.println(0b100);


Step 5: 4 will appear on the console, and the binary representation is preceded by 0b (b can be uppercase or lowercase).


The above is the entire content of how to write binary in Eclipse brought to you by the editor. I hope it can help you.

Related articles更多>>

Popular recommendations