9/13 excercise


#1



Dog.java:13: error: expected
System.out.println("Woof!");
^
Dog.java:13: error: illegal start of type
System.out.println("Woof!");
^
Dog.java:17: error: class, interface, or enum expected
public static void main(String[] args) {
^
Dog.java:18: error: class, interface, or enum expected
public int getAge() {
^
Dog.java:21: error: class, interface, or enum expected
public void run(int feet);
^
Dog.java:24: error: class, interface, or enum expected
System.out.println("Your dog ran" + feet +"feet!")
^
Dog.java:28: error: class, interface, or enum expected
public int getAge(){
^
Dog.java:30: error: class, interface, or enum expected
}
^
8 errors

9/13


Replace this line with your code.


#2

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