Why my extension is not compiling?

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

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.

4 Likes

Haa @Anke Its My extensions..i havent return string value while making this extensions and asked. :sweat_smile: :sweat_smile:

2 Likes

Yes, I know ...

1 Like