Make use of the Java 7 java.nio.file.Paths class. public static boolean isPathValid(String path) { try { Paths.get(path); } catch (InvalidPathException ...
確定! 回上一頁