We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b9908f commit 6a59629Copy full SHA for 6a59629
lesson_15/tdd/tdd_app/src/main/java/com/codedifferently/lesson15/Employee.java
@@ -1,7 +1,5 @@
1
package com.codedifferently.lesson15;
2
3
-import java.io.Console;
4
-
5
public class Employee {
6
private int id;
7
private String name;
@@ -47,10 +45,13 @@ public double getSalary() {
47
45
public void setSalary(double salary) {
48
46
this.salary = salary;
49
}
50
- public String getDetails() {
51
- return details;
+
+ public void details(){
+ System.out.println(getDetails());
52
53
- public void getDetails(String details){
+ public String getDetails(){
54
return "The employee, " +name+ " in " +department+ " with the id of " +id+ " has a salary of " +salary+ " .";
55
- }
+ }
56
57
0 commit comments