Normal
[code=Java] java.util.List<String> xyz = new java.util.ArrayList<String>(); String[] temp2 = {"1#1", "1#0"}; for (int i=0; i<temp2.length;i++){ String a = temp2[i]; String[] temp2_1 = (a.split("#")); for(int j=0; j<temp2_1.length; j++) xyz.add(temp2_1[j]); } String[] temp3 = new String[xyz.size()]; for(int i=0; i<xyz.size(); i++) { temp3[i] = xyz.get(i); }[/code]Bei mir klappt das.temp3 ist dann (1, 1, 1, 0).so wolltest du das doch, oder? ^^
[code=Java] java.util.List<String> xyz = new java.util.ArrayList<String>();
String[] temp2 = {"1#1", "1#0"};
for (int i=0; i<temp2.length;i++){
String a = temp2[i];
String[] temp2_1 = (a.split("#"));
for(int j=0; j<temp2_1.length; j++)
xyz.add(temp2_1[j]);
}
String[] temp3 = new String[xyz.size()];
for(int i=0; i<xyz.size(); i++)
{
temp3[i] = xyz.get(i);
}[/code]
Bei mir klappt das.
temp3 ist dann (1, 1, 1, 0).
so wolltest du das doch, oder? ^^