class Dog {
  int age;

	public Dog(int dogsAge) {
  	age = dogsAge;
  public void run(int feet){
    System.out.println("Your dog ran " + 
                      feet + "feet!");
  public void bark() {

	public static void main(String[] args) {
    Dog spike = new Dog(5);



Hi i am trying to run the java method || step..but is showing error.
I checked other discussion of the same problem..I tried to resolve it to do step by step also.. but still the same issue..
can some please help me


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

you need a space between feet and feet!


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.