Java program to find longest common substring between two given strings
Read this post on javatechblog.com