java 2dimensional array to string array -


i have 2 dimensional array values created follows:

for(int i=0;i<2;i++)  {  for(int j=0;j<4;j++)  {     array[i][j]=e.getvalues (r,c);  } } 

which return :

array[0][0] => 16 array[0][1] => 11 array[0][2] => 7 array[0][3] => 6 array[1][0] => 10 array[1][1] => 7 array[1][2] => 6 array[1][3] => 6 

how can store these values single string in 2d string array:

arrayvalues[0][0] = > {"16,11,7,6"}; arrayvalues[1][0] = > {"10,7,6,6"}; 

any appreciated. thanks.

for(int i=0;i<2;i++)  {    for(int j=0;j<4;j++)    {      array[i][j]=e.getvalues (r,c);        arrayvalues[i][0] += array[i][j];       if(j < 3) {        arrayvalues[i][0] += ',';      }     }   } 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -