In conditions say: Write the displayClosestToTen method. The method should display the argument that is nearest to 10. For example, given the numbers 8 and 11, 11 is closest to ten. If both numbers are equally close to 10, then display either of them. I wrote the code for the underlined part ( verify won`t pass). But when I put comment in that part of code (verify is passed).
Everything is OK but Verify does not confirm this