All pastes #1593731 Raw Edit

EmployeeTester

public java v1 · immutable
#1593731 ·published 2009-10-05 04:13 UTC
rendered paste body
/** * A class to test class Employee. */public class EmployeeTester    {        public static void main(String[] args)        {            Employee worker = new Employee("Bob the Builder", 80);            String workerName = worker.getName();            double workerSalary = worker.getSalary();            worker.raiseSalary(8);            System.out.println("Employee Name: "+workerName);            System.out.println("Employee Salary: $"+workerSalary);            System.out.println("Employee Salary with 8% raise: $"+worker.getSalary());            System.out.println("Expected Salary with 8% raise: $86.40");        }    }