package java.nio.file;

import java.io.File;

public class Path {

    private static final String SEPARATOR = "/";

    private final String pathString;

    protected Path (String pathString) {
        this.pathString = pathString;
    }

    public String toString()
    {
        return pathString;
    }

    public Path getParent() {

        int index = pathString.lastIndexOf(SEPARATOR);
        if (index == -1) {
            throw new IllegalArgumentException("Illegal path");
        } else if (index == 0) {
            String name = pathString.substring(index);
            if(name.equals(SEPARATOR)) {
                return null;
            }
            return new Path(SEPARATOR);
        } else {
            return new Path(pathString.substring(0, index));
        }
    }

    public Path getFileName() {
        throw new IllegalArgumentException("Not implemented!");
    }

    public Path resolve(String other) {
        if (pathString.endsWith(SEPARATOR))
            return new Path(pathString + other);
        return new Path(pathString + "/" + other);
    }

    public File toFile() {
        throw new IllegalArgumentException("Not implemented!");
    }

    public Path getName(int index) {
        throw new IllegalArgumentException("Not implemented!");
    }

    public int getNameCount() {
        throw new IllegalArgumentException("Not implemented!");
    }

    public Path subpath(int from, int to) {
        throw new IllegalArgumentException("Not implemented!");
    }

}

@@ -1073,32 +1073,310 @@
  other);%0A    %7D%0A%0A
+    public Path resolve(Path other) %7B%0A        return resolve(other.pathString);%0A    %7D%0A%0A    public boolean isAbsolute() %7B%0A        return pathString.startsWith(%22/%22);%0A    %7D%0A%0A    public boolean startsWith(Path other) %7B%0A        return pathString.startsWith(other.pathString);%0A    %7D%0A%0A
     public File 

fix gwtc