wolfshalabh
2010-09-21 19:02:30 UTC
public class Employee
{
public String FirstName;
public String LastName;
private float Salary;
private int JobGrade;
public Employee()
{
FirstName ="";
LastName ="";
Salary = 0.0f;
JobGrade = 0;
}
public Employee(String First, String Last)
{
FirstName = First;
LastName = Last;
Salary = 0.0f;
JobGrade = 0;
}
public Employee(String First, String Last, float salary, int grade)
{
FirstName = First;
LastName = Last;
Salary = salary;
JobGrade = grade;
}
public void SetSalary(float Dollars)
{
Salary = Dollars;
}
public float GetSalary()
{
return Salary;
}
public void SetJobGrade(int grade)
{
JobGrade = grade;
}
public void SetJobGrade(String Grade)
{
if (Grade.equals("CEO"))
{
JobGrade = 3;
}
else if (Grade.equals("MANAGER"))
{
JobGrade = 2;
}
else if (Grade.equals("DEVELOPER"))
{
JobGrade = 1;
}
}
public int GetJobGrade()
{
return JobGrade;
}
}
i keep getting this error
java.lang.NoSuchMethodError: main
Exception in thread "main"
----jGRASP wedge2: exit code for process is 1.
----jGRASP: operation complete.