okay All,i have been glooging this for the past hour but not getting any good response.
i have a java project, in the project i use code that read MULTIPLE files from folder,
as far as i saw we can access file using getClass().getResource
as for set of files, i am getting results ( how to add jar file to project) >:(
so here is my directory :
http://s25.postimg.org/64r06jwbz/inventory.png
and here is my code extract where i access a set of files:
how should i proceed gurus ??
File folder = new File("src/jp/images/");
File[] listOfImageFiles = folder.listFiles();
ImageData[] imgArray= new ImageData[listOfImageFiles.length];
int count=0;
for(File f:listOfImageFiles){
if(f.isFile()){
imgArray[count]= new ImageData(f);
count++;
}//close if statement
}//close for loop