Can anyone help me with this test class

hiya im new to java im trying to make this test class but i comes up with this error
EmployeeTestClass.java:14: cannot resolve symbol
symbol  : constructor Employee  (java.lang.String,java.lang.String,java.lang.String)
location: class Employee
     Employee Test = new Employee ("John", "Henry", "Monthly");
                            ^here is my whole code to the test class, please bear in mind im really new to java
public class EmployeeTestClass
   public static void main(String[] args)
     System.out.println ("Please type the employee name:");
          String fName = EasyIn.getString();
     System.out.println ("Please type the employee secound name :");
          String sName = EasyIn.getString();
     System.out.println ("Please type the employee eReference :");
          String  eReference = EasyIn.getString();
     System.out.println ("Please type the employee annualSalary :");
          String  annualSalary = EasyIn.getString();      
     Employee Test = new Employee ("John", "Henry", "Monthly");
   Test.showDetails();
}

// your code:
Employee Test = new Employee ("John", "Henry",
"Monthly");What you need to do is put the
variables fName, sName etc. in there instead. And you
declared the variable annualSalary as a
String, which should be a double.hiya i tried the above and now my code code like this
public class EmployeeTestClass
   public static void main(String[] args)
     System.out.println ("Please type the employee name:");
          String fName = EasyIn.getString();
     System.out.println ("Please type the employee secound name :");
          String sName = EasyIn.getString();
     System.out.println ("Please type the employee eReference :");
          String  eReference = EasyIn.getString();
System.out.println ("Please type the employee salary :");
          double  annualSalary = EasyIn.getString();
Employee Test = new Employee ("fName", "sName", "annualSalary");
   Test.showDetails();
      }but wheni try to complie it it comes up with these error please help
EmployeeTestClass.java:12: incompatible types
found   : java.lang.String
required: double
double  annualSalary = EasyIn.getString();
                                                          ^
EmployeeTestClass.java:15: cannot resolve symbol
symbol  : constructor Employee  (java.lang.String,java.lang.String,java.lang.String)
location: class Employee
Employee Test = new Employee ("fName", "sName", "annualSalary");
                     ^
2 errors

Similar Messages

Maybe you are looking for

  • OIm11g event handler-Bulk Orchestration

    Hi All, Can anyone help me with a sample code of bulk orchestration. Can i just copy and paste my execute() code in bulkexecute? My requirement is that my event handler shd work for a single user event Thanks -Mukul

  • Print Different Size Photo, one per page

    I am using PS5 in 64 bit mode.  I print on a Epson 3880 printer.  I shoot all photos in RAW.  I process all my RAW files in ACR accomplishing 80% of changes and the balance 20% in PS.  The output of my retouch is a Master Image (MI) File that I would

  • Optimizing Experience of Family Router and Apple Devices

    I'm very much a layman, but I've been doing a ton of research the past couple weeks on the following topics for optimizing my Apple World.  I know a lot more about basically what these terms mean and this stuff is, but honestly, the way it all effect

  • SQL Report not Working

    We have this DCM report in SCCM 2007 and we want to migrate it to SCCM 2012. In SCCM 2007, this report is working when you run it in the sccm console, but does not work when you run it in sql management studio. The error that I am encountering in sql

  • Prerequisite statment for substitution

    Hi friends, Kindly help me for Prerequisite statement for below substitution requirement. Substitution Requirement - In CJ01 or CJ02, when we assign or change the Person responsable at any WBS level and enter or save then this change need to effect f