I am trying to write a method that will convert a String containing only decimal digits to a binary array.
The basic issue is that I cannot use the Integer.parseInt method to treat the string as a an integer. For instance...
Integer.toBinaryString(Integer.parseInt(message));
This will not work for me because the int data type only allows for 4 bytes.
My method must work for a message of any length.
I think some parsing is in order, but I am not sure how to approach this.