> Yes and yes.
Kayaman,
I have an object creation inside a loop as follows:
FileDetails_Bean fileBean= new FileDetails_Bean();
j_bean_f.setpath(File_path);
j_bean_f.setname(File_name);
j_bean_f.setsize(File_size);
j_bean_f.settype(File_type);
j_bean_f.settime(File_time);
The fileBean gets generated each and every time inside the loop.So, the previous value of the object gets lost.How to save the value of the previous object?
try the following
private FileDetails_Bean fileBean= new FileDetails_Bean[5];
for (int i=0;i<5;i++) {
fileBean[i] = new FileDetails_Bean();
}
bye for now
sat