title: I'm not sure why this code isn't compiling, it requires a non-static variable
body: <pre><code>class TheAnimal {
  
      public class Animal {
          void bark(){
              System.out.println("Woof-Woof");
          }
  
      }
  
      public static void main(String[] args){
           Animal dog = new Animal();
           dog.bark();
      }
  
  }
  </code></pre>
  
  <p>// 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.</p>