public static void main(String args[]){
        LongestCommonSubsequence lcs = new LongestCommonSubsequence();
        String str1 = "ABCDGHLQR";
        String str2 = "AEDPHR";
        
        int result = lcs.lcsDynamic(str1.toCharArray(), str2.toCharArray());
        System.out.print(result);
    }
http://www.geeksforgeeks.org/dynamic-programming-set-4-longest-common-subsequence/
src/com/interview/dynamic/LongestCommonSubsequence.java