vb.net - How in Visual Basics change characters in a string for example (1 to 0) and (0 to 1)? -


how in visual basics change characters in string example (1 0) , (0 1) without problem of changing them first 0 , 1, want result example "00110010101101001010" "11001101010010110101" (to flip it)

use intermediate value.

change 0 -> 2 change 1 -> 0 change 2 -> 1 

Comments