|
@@ -28,4 +28,18 @@ public class Student {
|
28
|
28
|
return map.get(labName);
|
29
|
29
|
// throw new UnsupportedOperationException("Method not yet implemented");
|
30
|
30
|
}
|
|
31
|
+
|
|
32
|
+ @Override
|
|
33
|
+ public String toString() {
|
|
34
|
+ StringBuilder builder = new StringBuilder();
|
|
35
|
+
|
|
36
|
+ for (Map.Entry<String, LabStatus> entry : map.entrySet()) {
|
|
37
|
+ String key = entry.getKey();
|
|
38
|
+ String value = entry.getValue().name();
|
|
39
|
+ builder.append(key + " > " + value + "\n");
|
|
40
|
+ }
|
|
41
|
+
|
|
42
|
+ return builder.toString().trim();
|
|
43
|
+ }
|
|
44
|
+
|
31
|
45
|
}
|