<hr></blockquote>
Hi Naf, you probably need to keep the int's as int's, because the double will not count like you want it to. You have to typecast the return statement at the end.
return distanceMatrix[(double)i][(double)j];
This way it will return two double objects instead of int's. Also change your for loop to int ij as well, because the distanceMeatrix.length is measured in int's.
HTH, and I hope that it is correct. You may have to play around with the type cast, but I believe it is the right path.
It would be great if somebody else could chime in on this one.
Thanks
Gabe
2. I don't think you really want the retur[n statement inside of that for loop. The first time the loop executes, the method will return
definately
[ March 03, 2004: Message edited by: Gabriel White ]