How can i send a files which stored in array to other class? I have tried this code but isnt working.
public class abc {
....
String [] indexFiles = new String[100];
public abc (){
indexFiles [0]=image1.txt;
indexFiles [1]=image1.txt;
....
draw = new drawing (indexFiles(0)); // I got error in this code
draw = new drawing (indexFiles.get(0)); // I also tried this code but it give me error as well.
}
}