Here the error i get from the file below
F:\JAVA\Java Files\lab employee\FulltimeEmployee.java:1: cannot find symbol
symbol : class Calender
location: package java.util
import java.util.Calender;
^
F:\JAVA\Java Files\lab employee\FulltimeEmployee.java:22: cannot find symbol
symbol : class DateComponent
location: class FulltimeEmployee
DateComponent dc = new DateComponent(date);
^
F:\JAVA\Java Files\lab employee\FulltimeEmployee.java:22: cannot find symbol
symbol : class DateComponent
location: class FulltimeEmployee
DateComponent dc = new DateComponent(date);
^
F:\JAVA\Java Files\lab employee\FulltimeEmployee.java:27: cannot find symbol
symbol : class Calender
location: class FulltimeEmployee
Calender today = Calender.getInstance();
^
F:\JAVA\Java Files\lab employee\FulltimeEmployee.java:27: cannot find symbol
symbol : variable Calender
location: class FulltimeEmployee
Calender today = Calender.getInstance();
^
F:\JAVA\Java Files\lab employee\FulltimeEmployee.java:28: cannot find symbol
symbol : variable Calender
location: class FulltimeEmployee
year = today.get(Calender.YEAR);
^
F:\JAVA\Java Files\lab employee\FulltimeEmployee.java:29: cannot find symbol
symbol : variable Calender
location: class FulltimeEmployee
month = today.get(Calender.MONTH);
^
F:\JAVA\Java Files\lab employee\FulltimeEmployee.java:30: cannot find symbol
symbol : variable Calender
location: class FulltimeEmployee
day = today.get(Calender.DAY_OF_MONTH);
^
F:\JAVA\Java Files\lab employee\FulltimeEmployee.java:34: unexpected type
required: variable
found : value
vacationDays = (year - yy) = VACATION_DAYS_PER_YEAR;
^
F:\JAVA\Java Files\lab employee\FulltimeEmployee.java:38: unexpected type
required: variable
found : value
vacationDays = (year - yy - 1) = VACATION_DAYS_PER_YEAR;
^
F:\JAVA\Java Files\lab employee\FulltimeEmployee.java:45: return outside method
return salary;
^
11 errors
Tool completed with exit code 1
here the file which it is referring to to
import java.util.Calender;
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();
Calender today = Calender.getInstance();
year = today.get(Calender.YEAR);
month = today.get(Calender.MONTH);
day = today.get(Calender.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;
}
}