Howto convert a boolean array (or BitSet) to a string and vice versa.
Example:
boolean[] ar = {true,false,false,false,false};
print(BitArrayToString(ar));
Should return one of the following
10000 //binary
16 //decimal
10 //hex, prefered
The otherway around should work also
ar = StringToBitArray(BitArrayToString(ar));
where
works as long as the
ararray is less then the size of a long. Use http://java.sun.com/j2se/1.5.0/docs/api/java/util/Formatter.html#syntax for other formatting needs