I have a folder which i want to add the contents of it to a string array. However some of the files have the same name but a different file extension eg foo.txt and foo.zip
I have being using
File fileList = new File(path);
String projects = fileList.list();
but it is no use anymore as it shows two files instead of one. I just want one entry of each distinct filename in the string array. Ive being trying to use a filefilter but to na avail. Your help is appriciated.