Hi Friends,
In the following code....
public class Alignment {
private
String[] strs;
private char padSymbol = '-';
private char[][] charArray;
public Alignment(){
}
public Alignment(String s1, String s2){
strs = new String[2];
setFirstString(s1);
setSecondString(s2);
}
public char[][] toArray(){
for(int i = 0; i < strs.length; i++){
int j = strs[i].length();
charArray[i] = strs[i].toCharArray();}
return charArray;
}
}
When I try to run the class by using other Test.java I am getting error in the toArray() method, in the line
charArray[i] = strs[i].toCharArray();
charArray is a two dimensional array.
strs is one dimensional array which consists of two strings s1 and s2.
I am getting an error as "Exception processing async
thread queue". It compiles fine.
Can any one help in coming out of this issue.
Regards,
Ravindra.