public Thread1(String name, int len, String a[], String b[])
thr[0] = new Thread1( tt , baseLength, aa, bb);
A String cannot be converted to a String[] by method invocation conversion
zeroliken
Veteran Poster
1,106 posts since Nov 2011
Reputation Points: 201
Solved Threads: 162
DavidKroukamp
Practically a Master Poster
693 posts since Dec 2011
Reputation Points: 282
Solved Threads: 169
[EDIT]
Adding to what zeroliken said, your trying to parse arguments to a constructor that accepts a String,Integer and 2 String arrays: Thread1(String name, int len, String a[], String b[]). In your code you are parsing 3 strings and an integer which doesnt coincide with any of the constructors you have: thr[0] = new Thread1(tt, baseLength, aa, bb).
So maybe change it from an Array to a String or depending on if the array is needed then parse the entire array and not just a single String from the array. i.e: Thread1(tt, baseLength, sequence, sequence).
Another problem i for see is:
thr[tcount].sleep(1000);
This should be surrounded by a try catch statement for an InterruptedException/ or have a throw statement. also its not good practice to access Thread as a static rather use:
try {
Thread1.sleep(1000);
}catch(InterruptedException ie) {
}
DavidKroukamp
Practically a Master Poster
693 posts since Dec 2011
Reputation Points: 282
Solved Threads: 169