The datatype of input space is integer relative to row/column indices. Therefore, the similarity between elements i and j is matrix[i][j]. If i or j is not in the range of the matrix, 0 is returned.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.