/ Published in: Java
                    
                                        
Sort a File array with the descending of file name.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
import java.util.Arrays;
import java.util.Comparator;
import java.io.File;
if (f1.getName().charAt(0) < f2.getName().charAt(0)) {
return 1;
} else {
return 0;
}
});
}
Comments
 Subscribe to comments
                    Subscribe to comments
                
                