43 Java Convert Decimal To Binary Method 2 |

preview_player
Показать описание
"Learn How To Design + Code A Complete App From Scratch To Playstore"
-~-~~-~~~-~~-~-

This Java Tutorial video shows Java program to convert decimal to binary using modulus operator and integer division and StringBuffer
Check our Facebook page
and follow us on Twitter at
Рекомендации по теме
Комментарии
Автор

Thanks Melchior Simon, I am glad you like it, great things will come on this channel, stay tuned :D

slidenerd
Автор

DUDE, i actually get it when you explain this. seriously thank you. :)

lulujoanna
Автор

use Integer.toBinaryString to always ensure that the number is converted to binary.

slidenerd
Автор

@joanna Lu, thank you very much, my dream was to make a channel on youtube that makes people understand the WHY more than the HOW of something, finally I feel you guys are knowing the WHY behind everything, the syntax s never an issue, if you know why it works the way it does, you can write this in c, c++, java, .NET, android, scala, groovy, ruby, objective c, python, php, perl :D

slidenerd
Автор

sir do you know which video in this playlist you first used the StringBuffer ? thanks!!

koybits
Автор

@lutf ali saim :D u r welcome, stay tuned :D

slidenerd
Автор

I have to do this for homework, but I can't use while, if loops. It needs to be done using the most basic java methods such as for loops, and just dividing and adding. 

iphoneman
Автор

Can you pls tell me how to do this using Scanner class and how to store the remainders without using scanner class.
Thanks!

madhavjivrajani
Автор

can you please send link for your file concept video links

trender
Автор

when i input add it return
01000

how to remove the extra 0 infront of the 1

voiceoflove
Автор

pls upload program about how to togglebits ??

raghavchadha
Автор

Sir can you help me, the output on my code should be

input : 7
output:

beehive
Автор

Guys any idea how to transform comma decimal to binary... I'm desperate

AlexanderCamacho
Автор

i can also talk beautifully like a Russian, so I am neither punjabi nor kerela :D :p

slidenerd
Автор

How dfuq people think this kind of algorithms.OMG.
BTW why not StringBuilder? Why StringBuffer? As StringBuffer is heavy and we don't even need it in this context?

prabhakarkevat