title: Why is a .class file not being created?
body: <p>I am promgramming for the first time for with a mac running OS X 10.10.5 Yosemite and I'm using Smultron7 as a text editor. Whenever I try to compile and run code within the text editor or terminal an error appears on the console. For example:</p>
  
  <pre><code>input:
  
      public class HelloWorld{
      public static void main(String []args){
          System.out.println("Hello World");
  
      }
  }
      Output: 
  
      Documents/:Users:KH:HelloWorld.java:1: error: class HelloWorld is public, should be declared in a file named HelloWorld.java
      public class HelloWorld{
             ^
      1 error
  </code></pre>
  
  <p>It seems like a .class file is not being created and I'm not sure why. I've also downloaded Java Development Kit 8 from the oracle website.</p>