Please help, as I do not know what I have done wrong. Error: illegal start of expression, and ; expected.
import java.util.ArrayList;
import java.util.List;
public class Employee
{
public static void main ( String args [])
{
//unique identifier
int empID;
String firstName;
String lastName;
double salary;
//not sure if u want to model as just a string or as another entity
//the reason is you may have more than one employee leaving in same address
String address;
String address2;
String employeeType;
List<PaySlip> payslips = new ArrayList<PaySlip>();
Employee[] employeeList = new Employee [100];
public Employee(int empID, String firstName, String lastName, double salary,
String address, String address2, String employeeType)
{
super();
this.empID = empID;
this.firstName = firstName;
this.lastName = lastName;
this.salary = salary;
this.address = address;
this.address2 = address2;
this.employeeType = employeeType;
}
public EmployeeType
{
CONTRACTOR;
PERMANENT;
}
}
}