public void getLongestCommonSubstring(String s1, String s2) {

		char[] x = s1.toCharArray();
		char[] y = s2.toCharArray();

		int[][] c = new int[x.length + 1][y.length + 1];
		int max = 0, startIndex = 0;
		for (int i = 1; i <= x.length; i++) {
			for (int j = 1; j <= y.length; j++) {
				// two possiblilities
				if (x[i - 1] == y[j - 1]) {
					c[i][j] = c[i - 1][j - 1] + 1;
					if (c[i][j] > max) {
						max = c[i][j];// keep track of the length
						startIndex = i - max;// for getting the LCSub
					}
				}// no need for else, all defalut 0 in the array
			}
		}

		print(c);
		DisplayLCS(c, x, max, startIndex);
	}