@Override
    public final double getDistance(final String string1, final String string2) {
        final int[][] distance = new int[string1.length() + 1][string2.length() + 1];

        for (int i = 0; i <= string1.length(); i++)
            distance[i][0] = i;
        for (int j = 1; j <= string2.length(); j++)
            distance[0][j] = j;

        for (int i = 1; i <= string1.length(); i++)
            for (int j = 1; j <= string2.length(); j++)
                distance[i][j] = minimum(distance[i - 1][j] + 1, distance[i][j - 1] + 1, distance[i - 1][j - 1] + ((string1.charAt(i - 1) == string2.charAt(j - 1)) ? 0 : 1));

        return distance[string1.length()][string2.length()];
    } /* End of 'LevensthteinDistance::getDistance' method */