class TheAnimal {
public class Animal {
void bark(){
System.out.println("Woof-Woof");
}
}
public static void main(String[] args){
Animal dog = new Animal();
dog.bark();
}
}
// Keeps saying on line 12 Animal dog = new Animal(); after compiling that it's a non-static variable and that it cannot be referenced from a static context.