fork download
  1. public static List<String> fillGaps(List<String> deps) {
  2. HashSet<String> tmp = new HashSet<>();
  3. for (String value : deps) {
  4. String start = "";
  5. for (String el : value.split("/")) {
  6. if (start.equals("")) {
  7. start = el;
  8. } else {
  9. start += "/" + el;
  10. }
  11. tmp.add(start);
  12. }
  13. }
  14. return new ArrayList<>(tmp);
  15. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class, interface, or enum expected
 public static List<String> fillGaps(List<String> deps) {
               ^
Main.java:3: error: class, interface, or enum expected
        for (String value : deps) {
        ^
Main.java:5: error: class, interface, or enum expected
            for (String el : value.split("/")) {
            ^
Main.java:8: error: class, interface, or enum expected
                } else {
                ^
Main.java:10: error: class, interface, or enum expected
                }
                ^
Main.java:12: error: class, interface, or enum expected
            }
            ^
Main.java:15: error: class, interface, or enum expected
    }
    ^
7 errors
stdout
Standard output is empty