|
@@ -21,6 +21,13 @@ public class PersonHandler {
|
21
|
21
|
// append `stringRepresentation` to `result` variable
|
22
|
22
|
|
23
|
23
|
// end loop
|
|
24
|
+
|
|
25
|
+ int i = 0;
|
|
26
|
+ while(i < personArray.length){
|
|
27
|
+ result += personArray[i].toString();
|
|
28
|
+ i ++;
|
|
29
|
+ }
|
|
30
|
+
|
24
|
31
|
return result;
|
25
|
32
|
}
|
26
|
33
|
|
|
@@ -39,6 +46,11 @@ public class PersonHandler {
|
39
|
46
|
// append `stringRepresentation` to `result` variable
|
40
|
47
|
// end loop
|
41
|
48
|
|
|
49
|
+ for(int i = 0; i < personArray.length; i ++){
|
|
50
|
+ Person currentPerson = personArray[i];
|
|
51
|
+ result += currentPerson.toString();
|
|
52
|
+ }
|
|
53
|
+
|
42
|
54
|
return result;
|
43
|
55
|
}
|
44
|
56
|
|
|
@@ -55,6 +67,10 @@ public class PersonHandler {
|
55
|
67
|
// append `stringRepresentation` to `result` variable
|
56
|
68
|
// end loop
|
57
|
69
|
|
|
70
|
+ for(Person person : personArray){
|
|
71
|
+ result += person.toString();
|
|
72
|
+ }
|
|
73
|
+
|
58
|
74
|
return result;
|
59
|
75
|
}
|
60
|
76
|
|