I am trying to create an array of a class but am getting an error code. The code below is supposed to import multiple csv files with file names listed in the list array . Please can you let me know what I have done wrong?
String[] list;
WINCH[] winch;
void setup(){
filelist();
WINCH[] winch =new WINCH[list.length];
for (int n=0 ; n<list.length ; n++ ){
winch[n] = new WINCH(n);
}
}
void filelist(){
//create file list
int starttrack = 4;
int endtrack = 6;
int startwinch = 1;
int endwinch = 4;
int winchquantity = (endtrack-starttrack+1)*(endwinch-startwinch+1);