10. Methods:II


When the code prints onto the console a space between the int and the word feet is gone, in other words there is not a space between the number and the word feet.


If you want a space before feet, you can do that like this:

" feet!"


Try it by using

System.out.println("Your dog ran " + feet + " feet!");