Returns length of length common subsequence for str1 [ 0. . m - 1 ] , str2 [ 0. . n - 1 ]
static int lcs ( String str1 , String str2 , int m , int n ) { int L [ ] [ ] = new int [ m + 1 ] [ n + 1 ] ; int i , j ;