How do I write a java program that converts an integer like 16 to binary

  • Thread starter Thread starter Pmpinaintez11
  • Start date Start date
P

Pmpinaintez11

Guest
like 10000. Any help is appreciated? here is an example of how the program will look when run:

i can do all the starting part i just need code that converts the integer to binary

Do you want to start(Y/N): y
Enter an integer and I will convert it to binary code: 16
You entered 16.
16 in binary is 10000.

Thank you
 
Back
Top