its fine i did trial and error and da 1st one worked thnx
If you are using:
return hit = true;
then the method will only return a true value (because you are assigning 'true' to the 'hit' variable instead of comparing the two -- which '==' would do).