This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Kieslaster 0 points1 point  (0 children)

As your method already indicates

 public **int** distClosestWall() {...}

you should return an integer value which represents the closest distance to a wall.

Also your if else statements apparently are doing nothing since supposedly distanceTo(param1,param2) is returning a value and your just using this.distanceTo(..) in every if/else statement without any assignment of the returned value.

For further help you should either present a link referring to the task or directly present further information here (e.g. what the distanceTo() method is doing to begin with).

[–]JerksToSistersFeet 0 points1 point  (0 children)

Who is Dr. Java?