343536373839404142
} String[] filePath = file.list(); if(filePath.length > 0) { for(String str : filePath) imgList.add(new Images(str, "pic/"+user.getUsername()+"/"+str)); } }
515253545556575859
String[] filePath = file.list(); if(filePath.length > 0) { imgList.clear(); for(String str : filePath) imgList.add(new Images(str, "pic/"+user.getUsername()+"/"+str)); } System.out.println("123123"); }