package java.nio.file;


public class Paths {

    private static final String ERROR_MSG_NULL_PATH = "Paths.get() does not support null path";
    private static final String ERROR_MSG_VARARGS = "Paths.get() does not support varargs";
    private static final String ERROR_MSG_UNINITIALISED = "Paths.get() does not support uninitialised path string";

    public static Path get(String firstPath, String... pathString) {
        if(firstPath == null) {
            throw new IllegalArgumentException(ERROR_MSG_NULL_PATH);
        }
        if(pathString.length != 0) {
            throw new IllegalArgumentException(ERROR_MSG_VARARGS);
        }
        if(firstPath.equals("")) {
            throw new IllegalArgumentException(ERROR_MSG_UNINITIALISED);
        }
        return new Path(firstPath);
    }
}

@@ -18,16 +18,64 @@
 file;%0A%0A%0A
+import java.util.*;%0Aimport java.util.stream.*;%0A%0A
 public c
@@ -464,32 +464,33 @@
 ng) %7B%0A        if
+ 
 (firstPath == nu
@@ -588,122 +588,9 @@
   if
-(pathString.length != 0) %7B%0A            throw new IllegalArgumentException(ERROR_MSG_VARARGS);%0A        %7D%0A        if
+ 
 (fir
@@ -717,25 +717,111 @@
 ew Path(
-firstPath
+Stream.concat(Stream.of(firstPath), Arrays.stream(pathString)).collect(Collectors.joining(%22/%22))
 );%0A    %7D

Implement Paths.get() in gwt