Naf
First it would help if you used the code tags to format your code, it makes it more readable. Also, if you're going to post a lot of code and then mention line numbers you should highlight or somehow mark those lines so we can tell what the lines in question are.
Fred is right, you need a semi colon on the line indicated.
Also, it lloks like, in this line:
for (int all = 1; all<distanceMatrix.length; ++all)
you declare a variable 'all'. that variable will be local to the block it is declared in and not visible outside of the block. In this case the for statement has no braces so the statement executed within the for loop would be the very next line. In any code after that line the variable 'all' would not be visible. So, in the line:
checkDistanceVal = distanceMatrix[i][all];/*This will hold the final value ie, the value with the smallest distance.*/
It can't see the variable. IF it needs to then declare all before the for statement so it local to the method instead of the for statement.
Hope that helps