for(int i=0;i<c1+1;i++)
{
for(int j=0;j<3;j++)
{
System.out.print(ascii[i][j]);
}
// System.out.println();
}
System.out.println();
int digit[] = new int[c.length];
for(int i=0;i<c1+1;i++)
{
for(int j=0;j<ascii[i].length;j++)
{
digit[i] = Integer.parseInt(String.valueOf(ascii[i][j]));
}
}
for(int i=0;i<digit.length;i++)
{
System.out.print(digit[i]);
}
My question is that
1. First I want to convert 2d character array contain number into 2d intger array. for eg. "8" -> 8
2. Then want to make row of each 2d int array into string. 8 5 -> "85"
3. Then convert string into character array. "85" -> U
Problem with my code:
1. Not able to convert the 2d character array into the 2d integer array.