I have a problem with this code:
String[] textFileNames = directory.list(new FilenameFilter() {
public boolean accept(File dir, String name) {
return name.endsWith(".JPG");
}
});
this is from a class I adapted from this example:
http://www.zanthan.com/itymbi/archives/000805.html
I need to test for whether the file name ends with ".jpg" or ".JPG"..
(found out the hard way that this method is case-sensitive....;)
I don't know how to declare this method so it can accept ".JPG" or
".jpg"... (also this method is called nowhere in this Rename class.. so
what's the purpose of it...)
thank you...