Suppose I have a string array
NumText[]={“00111”, “01110”, “10110”},
now I want a new array
BinaryText[]={"0","0","1","1","1"......"1","1","0"},
which means I have to split each element of the array NumText[], and combine all the bits I get into a new array. What I can figure out is that I define a string array for each element, like
Binary0=NumText[0].split("");
Binary1=NumText[1].split("");
Binary2=NumText[2].split("");
After that I have to remove the leading zero of each BinaryX, and concatenate them together, which is really a bad idea. Any better ways? I appreciate your help.