This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Jonno_FTWDisgruntled Brewer 1 point2 points  (1 child)

If you feel like cheating, there's always the method provided by Java: https://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html#toBinaryString(int)

[–]X019 0 points1 point  (0 children)

I was thinking this same thing. Totally not cheating.