Jacqueline Joson před 6 roky
rodič
revize
b74e5fbbd1

+ 2
- 3
src/main/java/rocks/zipcode/io/quiz4/collections/SimpleStringGroup.java Zobrazit soubor

@@ -7,15 +7,14 @@ import java.util.function.Consumer;
7 7
  * @author leon on 11/12/2018.
8 8
  */
9 9
 public class SimpleStringGroup implements Iterable{
10
-    SimpleStringGroup ssg;
11
-    Integer count;
10
+
12 11
 
13 12
 //    public SimpleStringGroup() {
14 13
 //        throw new UnsupportedOperationException("Method not yet implemented");
15 14
 //    }
16 15
 
17 16
     public Integer count() {
18
-        return count;
17
+        return 0;
19 18
     }
20 19
 
21 20
     public void insert(String string) {

+ 2
- 1
src/main/java/rocks/zipcode/io/quiz4/generics/Group.java Zobrazit soubor

@@ -5,7 +5,7 @@ import java.util.Iterator;
5 5
 /**
6 6
  * @author leon on 18/12/2018.
7 7
  */
8
-public class Group<_> {
8
+public class Group<_> implements Iterable<_>, GroupInterface <_> {
9 9
     Group<_> group;
10 10
 
11 11
     public Group() {
@@ -16,6 +16,7 @@ public class Group<_> {
16 16
         return null;
17 17
     }
18 18
 
19
+
19 20
     public void insert(_ value) {
20 21
         group.insert(value);
21 22
     }