src/main/java/eu/digitisation/input/Batch.java
public static String lcs(File[] files) {
        if (files.length > 0) {
            String result = files[0].getName();
            for (int n = 1; n < files.length; ++n) {
                result = suffix(result, files[n].getName());
            }
            return result;
        } else {
            return null;
        }
    }
/**
     * Longest common suffix
     *
     * @param files an array of files
     * @return the longest common suffix to all files
     */
Longest common suffix
@param files an array of files
@return the longest common suffix to all files
Longest common suffix @param files an array of files @return the longest common suffix to all files
public static String lcs(File[] files) {
        if (files.length > 0) {
            String result = files[0].getName();
            for (int n = 1; n < files.length; ++n) {
                result = suffix(result, files[n].getName());
            }
            return result;
        } else {
            return null;
        }
    }
public static String lcs ( File [ ] files ) { if ( files . length > 0 ) { String result = files [ 0 ] . getName ( ) ; for ( int n = 1 ; n < files . length ; ++ n ) { result = suffix ( result , files [ n ] . getName ( ) ) ; } return result ; } else { return null ; } }
Longest common suffix
 @param files an array of files
 @return the longest common suffix to all files
Longest common suffix @param files an array of files @return the longest common suffix to all files