Driver code
public static void main ( String [ ] args ) { char [ ] X = " geeks " . toCharArray ( ) ; char [ ] Y = " geeksfor " . toCharArray ( ) ; char [ ] Z = " geeksforge " . toCharArray ( ) ; int m = X . length ; int n = Y . length ; int o = Z . length ; System . out . println ( " Length ▁ of ▁ LCS ▁ is ▁ " + lcs ( X , Y , Z , m , n , o ) ) ; } }