title: Java cant find class
body: <p>When i type in a simple code, i get an error code that i cannot understand.</p>
  
  <p>The code is:
  import static java.lang.System.out;</p>
  
  <p>class UseAccount
  {
      public static void main(String[] args)
      {</p>
  
  <pre><code>    fred myAccount = new fred();
      fred yourAccount = new fred();
  
      myAccount.name = "Barry Burd";
      myAccount.address = "222 Cyberspace Lane";
      myAccount.balance = 24.02;
  
      yourAccount.name = "Jane Q. Public";
      yourAccount.address = "111 Consumer Street";
      yourAccount.balance = 55.63;
  
          myAccount.display();
          out.println();
          yourAccout.display();
  }   
  </code></pre>
  
  <p>}</p>
  
  <p>however when i try to compile the code i simply get:</p>
  
  <pre><code>account2.java:9: cannot find symbol
  symbol  : class fred
  location: class UseAccount
          fred yourAccount = new fred();
          ^
  </code></pre>
  
  <p>How can i fix this error?</p>
  
  <p>i am just starting to learn java and this code is directly from a tutorial. According to the tutorial using "fred myAccount = new fred();" and "fred yourAccount = new fred();" does define the classes and the information below this section of code fills in the information.</p>