How do I take in a set of 0's and 1's and replace them with each other in java?
<p>For example - i take in a String "0 1 0 0 1 1 1 0".
I have to replace all the 0's with 1's and 1's with 0's using String's methods.</p>
