Seth 6 gadus atpakaļ
vecāks
revīzija
bde04d35be

+ 2
- 5
src/main/java/rocks/zipcode/io/quiz4/generics/GenericUtils.java Parādīt failu

1
 package rocks.zipcode.io.quiz4.generics;
1
 package rocks.zipcode.io.quiz4.generics;
2
 
2
 
3
-import java.util.Arrays;
4
-import java.util.Set;
5
-import java.util.TreeSet;
3
+import java.util.*;
6
 
4
 
7
 /**
5
 /**
8
  * @author leon on 11/12/2018.
6
  * @author leon on 11/12/2018.
9
  */
7
  */
10
 public class GenericUtils {
8
 public class GenericUtils {
11
     public static <_ extends Comparable> Iterable<? extends Iterable<_>> powerSet(Set<_> originalSet) {
9
     public static <_ extends Comparable> Iterable<? extends Iterable<_>> powerSet(Set<_> originalSet) {
12
-
13
-        return null;
10
+        return new ArrayList<>();
14
     }
11
     }
15
 
12
 
16
     public static <_ extends Comparable> Iterable<? extends Iterable<_>> powerSet(_... originalSet) {
13
     public static <_ extends Comparable> Iterable<? extends Iterable<_>> powerSet(_... originalSet) {