I tried casting and such with the method Integer.toBinaryString(n), but it makes me change my data type in the method to a String, when I want an int. How do I get around th