I getting the following errors.. please help .. below is error i get and below that is the file that the error is refferring to

E:\JAVA\Java Files\lab employee\FullTimeEmployee.java:22: cannot find symbol
symbol  : class DateComponent
location: class FullTimeEmployee
		DateComponent dc = new DateComponent(date);
		^
E:\JAVA\Java Files\lab employee\FullTimeEmployee.java:22: cannot find symbol
symbol  : class DateComponent
location: class FullTimeEmployee
		DateComponent dc = new DateComponent(date);
import java.util.Calendar;

public class FullTimeEmployee extends Employee
{
	protected double salary;
	private final int VACATION_DAYS_PER_YEAR = 30;

	public FullTimeEmployee(String name, String dateHired, double salary)
	{
		super(name, dateHired);
		this.salary = salary;
	}

	public int getVacationDays()
	{
		int mm, dd, yy;
		int month, day, year;
		int vacationDays;

		String date;
		date = getDateHired();
		DateComponent dc = new DateComponent(date);
		mm = dc.getMonth();
		dd = dc.getDay();
		yy = dc.getYear();

		Calendar calendar = Calendar.getInstance();
		year = calendar.get(Calendar.YEAR);
		month = calendar.get(Calendar.MONTH);
		day = calendar.get(Calendar.DAY_OF_MONTH);

		if ((month < mm) || ((month == mm) && (day <=dd)))
		{
			vacationDays = (year - yy) = VACATION_DAYS_PER_YEAR;
		}
		else
		{
			vacationDays = (year - yy - 1) = VACATION_DAYS_PER_YEAR;
		}
		return vacationDays;
	}

	public double getSalary();
	{
		return salary;
	}
}

Your class path needs to include the location of DateComponent.

How would I do that. I do not know how.. please let me know

This article has been dead for over six months. Start a new discussion instead.