I wanted to create a converter which converts Decimal to binary but it's not compiling.

I have also imported import java.lang.Math;
Please Help.
I wanted to create a converter which converts Decimal to binary but it's not compiling.

I have also imported import java.lang.Math;
Please Help.
You can't return a value from a method that you have defined it's return type to void. You might want to change the return type to String.
Haa @Anke Its My extensions..i havent return string value while making this extensions and asked.

Yes, I know ...