error while calling dependent file
<p>i created 2 files... namely Shirt.java and ShirtTest.java</p>

<p>The code for the Shirt.java class is as follows--</p>

<pre><code>public class Shirt{
public int ShirtID=0;
public String description="-description required-";
public char colorCode='U';
public double price=0.0;
public int quantityInStock=0;


public void displayShirtInformation(){
    System.out.println("ShirtId:"+ShirtID);
    System.out.println("ShirtDescription"+description);
    System.out.println("Color Code:"+colorCode);
    System.out.println("Shirt Price"+price);
    System.out.println("Quantity In Stock"+quantityInStock);


}

}
</code></pre>

<p>The code for the ShirtTest.java is as follows--</p>

<pre><code>public class ShirtTest {

  public static void main (String args[]) {

  Shirt myShirt = new Shirt();

  myShirt.displayShirtInformation();

  } 
}
</code></pre>

<p>While i compiled the Shirt.java file.. it compiled with no errors and created a Shirt.class
file.. but when i tried to compile the ShirtTest file.. it gave an error..
Which is as follows..</p>

<pre><code>&gt; C:\java&gt;javac ShirtTest.java
ShirtTest.java:6: cannot find symbol
symbol  : class Shirt
location: class ShirtTest
  Shirt myShirt = new Shirt();
  ^
ShirtTest.java:6: cannot find symbol
symbol  : class Shirt
location: class ShirtTest
  Shirt myShirt = new Shirt();
                      ^
2 errors
</code></pre>

<p>What is the problem here?</p>

<p>p.s-both Shirt.java as well as ShirtTest.java are in the same folder</p>
