Originally Posted by Fou-Lu
I don't understand your question. Integer.toBinaryString will work on any integer provided for it; it doesn't matter if you type in a
Integer.toBinaryString(5); or an
Can you be more specific on the question?
OK, so I have to read a few numbers using Java. The numbers are not hard-coded - they depend on whichever text file I choose to read. I need to take those numbers that I read and translate them into binary. For example, if a text file contains the numbers:
I want the numbers to be read and translated into binary (skipping the string).