Write a method called toBinary that accepts an integer as a parameter and returns a String containing

Question:

Write a method called toBinary that accepts an integer as a parameter and returns a String containing that integer’s binary representation. For example, the call of printBinary(44) should return "101100".

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: