public class Employee { String name; String city; Double salary; public Employee(String name, String city, double salary) { this.name = name; this.city = city; this.salary = salary; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getCity() { return city; } public void setCity(String city) { this.city = city; } public String getSalary() { return salary.toString(); } public void setSalary(String salary) { this.salary = Double.parseDouble(salary); } }