how to save a string of 0's and 1's as bits

can any one help me with thisi have a string 000100011110101010i have to save each 1 and 0 as bits
[119 byte] By [palatyabela] at [2007-11-27 7:48:27]
# 1
http://java.sun.com/j2se/1.5.0/docs/api/java/util/BitSet.htmlEdit: Sorry originally posted the index, but wanted the class (like it is now).
masijade.a at 2007-7-12 19:29:18 > top of Java-index,Java Essentials,Java Programming...