"Cannot Find Symbol" Why?
<p>So I am writing code for a programming class that simulates a website where customers can buy Products and add them to a Cart. I have made a Product and Cart class. They are both in the some directory and their .class files are in the same package. So why am I getting "cannot find symbol" on Product when compiling my Cart class? Help plz! and ty</p>

<p>Cart class:</p>

<pre><code>package com.DownloadThis;

import java.util.ArrayList;

public class Cart {

private ArrayList&lt;Product&gt; myCart;

public Cart() {
myCart = new ArrayList&lt;Product&gt;();
}

public void addProduct(Product p) {
myCart.add(p);
}

public float getTotal() {
float totalPrice = 0;
for(int i = 0; i &lt; myCart.size(); i++) {
  Object obj = myCart.get(i);
  Product p = (Product)obj;
  totalPrice = totalPrice + p.getPrice();
}
return totalPrice;
}

public void addToCart(int product_id) {


}
}
</code></pre>

<p>Product class:</p>

<pre><code>package com.DownloadThis;

import java.sql.*;

public class Product {

private String artist;
private String album;
private int year;
private String genre;
private float price;
private String albumart;
private String username;
private String password;

private Connection connection = null;
private ResultSet rs = null;
private Statement st = null;

public Product() {
}

public Product(String artist, String album, int year, String genre, float price, String albumart) {
 this.artist = artist;
 this.album = album;
 this.year = year;
 this.genre = genre;
 this.price = price;
 this.albumart = albumart;
}


public String getArtist() {
    return this.artist;
}

public void setArtist(String artist) {
    this.artist = artist;
}

public String getAlbum() {
    return this.album;
}

public void setAlbum(String album) {
    this.album = album;
}

public int getYear() {
    return this.year;
}

public void setYear(int year) {
    this.year = year;
}

public String getGenre() {
    return this.genre;
}

public void setGenre(String genre) {
    this.genre = genre;
}

public float getPrice() {
    return this.price;
}

public void setPrice(float price) {
    this.price = price;
}

public String getAlbumart() {
    return this.albumart;
}

public void setFilename(String albumart) {
    this.albumart = albumart;
}
</code></pre>

<p>}</p>
