Q:

Error:cannot find symbol -variable

I'm having problems with this simple code when creating an object of it.  I'm using BlueJ.
    public class Car 
    {
       private String brandName; 
       public Car(String brand) 
       {
       this.brandName = brand;
       }

       /**
       * @return the brand name of the car
       */
       public String getBrandName() 
       {
       return brandName;
       }

    }

A:

Try enclosing "Ferrari" in double quotes to make it a literal string.   Otherwise it looks like it's trying to find the variable named Ferarri.