adding elemnts of two dimentional array into vector
hello everyone
I need to add elemnts of two dimentional array
eg. (sub_string_testvec[u][x]) into vector (test_Pattern_after_filling)
I mean I want to add element (sub_string_testvec[u][0]., sub_string_testvec[u][1]), ...........sub_string_testvec[u][size of x]) at element number u in vetor (test_Pattern_after_filling) I mean element u at vector contains all sub_string_testvec[u][0].......sub_string_testvec[u][x size]
can I do this please help I want it ASAP
my code :
\code
for ( int u=0; u< Orig_test_Pattern.size();u++){
StringTokenizer token7 = new StringTokenizer(Orig_test_Pattern.get(u).toString( ));
int token7_num=token7.countTokens();
token7.nextToken();
for(int x=0;x<token7_num-1;x++){
if ( token7.hasMoreTokens()){
String ff= token7.nextToken();
for ( int g=0;g<input_node_no;g++){
sub_string_testvec=new String [Orig_test_Pattern.size()][token7_num-1];
if ( ff.substring(2,3).equals("x") && xxx==1 && input_more_1[g].equals(ff.substring (0,1)) && fl==1 ){
sub_string_testvec[u][x]=ff.substring(0,2)+"1";
}
else if ( ff.substring(2,3).equals("x") && xxx==0){
if (input_more_1[g]!=null){
if (input_more_1[g].equals(ff.substring (0,1))&& fl==1 ){
sub_string_testvec[u][x]=ff.substring(0,2)+"0"; }}
}
else{
sub_string_testvec[u][x]=ff.substring(0,2)+ff.substring(2,3);}}}
}}/ code