Wats the answer for::- System. out.print(Integer.toBinaryString(a)+Integer.toBinaryString(b)); | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Wats the answer for::- System. out.print(Integer.toBinaryString(a)+Integer.toBinaryString(b));

How to add two binary strings when added with a plus sign? let a=2 & b=3

23rd Sep 2017, 10:04 AM
Monika Fand
Monika Fand - avatar
3 Answers
+ 9
First add the ints then convert toBinaryString.
24th Sep 2017, 8:20 AM
Tashi N
Tashi N - avatar
+ 7
Try it out at the playground.
24th Sep 2017, 10:41 AM
Tashi N
Tashi N - avatar
0
tell me the answer
24th Sep 2017, 8:24 AM
Monika Fand
Monika Fand - avatar